Lines Matching refs:user
13 * 2) for each line apply the user/group regex to the users login and groups
37 /** @var array we store the regexes per user here */
65 $user = $event->data['user'];
68 if ($user === '') return;
69 if (auth_isadmin($user)) return;
71 // use cached user rules or fetch new ones if not available
72 if (!isset($this->ruleCache[$user])) {
73 $this->ruleCache[$user] = $this->rulesToRegex($this->loadACLRules($user, $groups));
78 $permisson = $this->evaluateRegex($this->ruleCache[$user], $id);
118 * Load the custom ACL regexes for the given user
120 * @param string $user
124 protected function loadACLRules($user, $groups)
126 $entities = $this->createUserGroupEntities($user, $groups);
129 // get all rules that apply to the user and their groups
163 * Combines the user and group info in prefixed entities
165 * @param string $user
169 protected function createUserGroupEntities($user, $groups)
175 $entities[] = $user;
181 * Returns all ID patterns that match the given user/group entities
185 * @param string $pattern The user pattern part of the config rule