Lines Matching defs:user
42 'core.login' => (new ApiCall([$this, 'login'], 'user'))->setPublic(),
43 'core.logoff' => new ApiCall([$this, 'logoff'], 'user'),
44 'core.whoAmI' => (new ApiCall([$this, 'whoAmI'], 'user')),
45 'core.aclCheck' => new ApiCall([$this, 'aclCheck'], 'user'),
121 // region user
126 * This will use the given credentials and attempt to login the user. This will set the
131 * @param string $user The user name
135 public function login($user, $pass)
147 $ok = $auth->trustExternal($user, $pass, false);
151 'user' => $user,
166 * Attempt to log out the current user, deleting the appropriate cookies
185 * Info about the currently authenticated user
197 * This call allows to check the permissions for a given page/media and user/group combination.
198 * If no user/group is given, the current user is used.
204 * @param string $user username
209 public function aclCheck($page, $user = '', $groups = [])
216 if ($user === '') {
220 $userinfo = $auth->getUserData($user);
227 return auth_aclcheck($page, $user, $groups);
375 $recent['user'],
497 $info['user'],
562 * Only links from pages readable by the current user are returned. The page itself
581 * successfully locked. If a page could not be locked, eg. because a different user is
617 * successfully unlocked. If a page could not be unlocked, eg. because a different user is
650 * You need write permissions for the given page and the page may not be locked by another user.
806 $recent['user'],
963 $info['user'],
1083 * - check if the user has the required access level (pass AUTH_NONE to skip)