getModuleGroupsRightsActions() public static method

Get all module action combinations a user has access to
public static getModuleGroupsRightsActions ( integer $userId ) : array
$userId integer The id of the user
return array
Example #1
0
 private function getAllowedAction($module)
 {
     if (BackendAuthentication::isAllowedAction('Index', $module)) {
         return 'Index';
     }
     $allowedAction = false;
     $groupsRightsActions = BackendUsersModel::getModuleGroupsRightsActions($module);
     foreach ($groupsRightsActions as $groupsRightsAction) {
         $isAllowedAction = BackendAuthentication::isAllowedAction($groupsRightsAction['action'], $module);
         if ($isAllowedAction) {
             $allowedAction = $groupsRightsAction['action'];
             break;
         }
     }
     return $allowedAction;
 }