Home
last modified time | relevance | path

Searched refs:roles (Results 26 – 27 of 27) sorted by path

12

/plugin/structpublish/helper/
H A Ddb.php78 * Check if the current user has the given roles on the current page
81 * @param string[] $roles Roles needed. Empty for any role
84 public function checkAccess($pid, $roles = [])
86 return self::userHasRole($pid, '', [], $roles);
126 * @param string[] $roles Roles the user should have, empty for any role
129 public static function userHasRole($pid, $userId = '', $grps = [], $roles = [])
142 // if no roles are given, any role is fine
143 if (empty($roles)) {
151 foreach ($roles as $role) {
50 checkAccess($pid, $roles = []) global() argument
91 userHasRole($pid, $userId = '', $grps = [], $roles = []) global() argument
/plugin/vbsso/
H A Dadmin.php76 $roles = array_merge(vbsso_get_acl_groups(), array('', 'admin'));
77 ksort($roles, SORT_STRING);
136 foreach ($roles as $group) {

12