'perm'` inside `$adminMenu`
Permissions: $adminMenu does not gate anything
// hides the link. does NOT block the route.
protected $adminMenu = array(
'main/list' => array('caption' => LAN_MANAGE, 'perm' => 'P'),
'main/create' => array('caption' => LAN_CREATE, 'perm' => '0'),
);Where the gate actually is
protected $perm = '0'; // string: gates the whole dispatcher
// -> hasModeAccess()
protected $perm = array( // array: gates per route
'main/prefs' => '0', // -> hasRouteAccess()
);Which route keys are real
Key
Method
Key
Reality
Last updated