User¶
-
class
OCP\
User
¶ - This class provides access to the user management. You can get informationabout the currently logged in user and the permissions for example
Source: lib/public/User.php#46
Methods¶
-
public static
OCP\User::
getUser
()¶ - Get the user id of the user currently logged in.
Source: lib/public/User.php#53 Returns: string uid or false Deprecated: 8.0.0 Use \OC::$server->getUserSession()->getUser()->getUID() Since: 5.0.0
-
public static
OCP\User::
isLoggedIn
()¶ - Check if the user is logged in
Source: lib/public/User.php#63 Returns: bool Since: 5.0.0 Deprecated: 13.0.0 Use annotation based ACLs from the AppFramework instead
-
public static
OCP\User::
checkAdminUser
()¶ - Check if the user is a admin, redirects to home if not
Source: lib/public/User.php#72 Since: 5.0.0 Deprecated: 13.0.0 Use annotation based ACLs from the AppFramework instead
-
public static
OCP\User::
checkLoggedIn
()¶ - Check if the user is logged in, redirects to home if not. Withredirect URL parameter to the request URI.
Source: lib/public/User.php#82 Since: 5.0.0 Deprecated: 13.0.0 Use annotation based ACLs from the AppFramework instead