Ephendi Posted August 2, 2012 Report Share Posted August 2, 2012 Please help me, i want to limit access to specific module. Probably via .htaccess and password. Please help if you know how ... P. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 3, 2012 Administrators Report Share Posted August 3, 2012 You can use the native permission system and tie your module to a certain usergroup and only allow access to that group. Something like if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { //your functions } } else { echo 'No Access'; } Just replace "ACCESS_ADMIN" with the permission you would like to use. If you so not allow the group access to the admin area but do allow the permission for a function below this will let them in your module but not in the admin section. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.