i want to provide access to a download file only if the person is logged in. For anonymous user, i want to deny the access. Can anyone suggest me how to achieve it

Comments

wla_g’s picture

Make use of the user variable. If $user->uid > 0, the user is logged in.

Regards
Werner