By rajeshh on
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
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
Make use of the user
Make use of the user variable. If $user->uid > 0, the user is logged in.
Regards
Werner