[eluser]Nagyman[/eluser]
RE: Permissions ...took a bit of guessing to figure this out...
access_levels.php
Code:
// restrict any users below admin from seeing a list
$config['example'] = $config['admin_level'];
// restrict any users below admin from adding new
$config['example/add'] = $config['admin_level'];
// restrict any users below admin from editing/deleting
$config['example/manage'] = $config['admin_level'];
codexlogin.php checks for the above access levels and redirects to the login page if the currently logged in user doesn't meet the required level. There's supposed to be an error message, but the following line needs to be added to codex_lang.php
Code:
$lang['codexlogin_no_privilege'] = 'Insufficient Privileges [<a href="[removed]history.go(-1);">Go back</a> or login.]';
Ideally, if these access levels are set, then "Delete", "Edit", or "Add" shouldn't be displayed respectively.