Lines Matching defs:user
41 'core.login' => (new ApiCall([$this, 'login'], 'user'))->setPublic(),
42 'core.logoff' => new ApiCall([$this, 'logoff'], 'user'),
43 'core.whoAmI' => (new ApiCall([$this, 'whoAmI'], 'user')),
44 'core.aclCheck' => new ApiCall([$this, 'aclCheck'], 'user'),
120 // region user
125 * This will use the given credentials and attempt to login the user. This will set the
130 * @param string $user The user name
134 public function login($user, $pass)
146 $ok = $auth->trustExternal($user, $pass, false);
150 'user' => $user,
165 * Attempt to log out the current user, deleting the appropriate cookies
184 * Info about the currently authenticated user
196 * This call allows to check the permissions for a given page/media and user/group combination.
197 * If no user/group is given, the current user is used.
203 * @param string $user username
208 public function aclCheck($page, $user = '', $groups = [])
215 if ($user === '') {
219 $userinfo = $auth->getUserData($user);
226 return auth_aclcheck($page, $user, $groups);
374 $recent['user'],
496 $info['user'],
561 * Only links from pages readable by the current user are returned. The page itself
580 * successfully locked. If a page could not be locked, eg. because a different user is
616 * successfully unlocked. If a page could not be unlocked, eg. because a different user is
649 * You need write permissions for the given page and the page may not be locked by another user.
805 $recent['user'],
1001 * - check if the user has the required access level (pass AUTH_NONE to skip)