Merge pull request #7878 from nextcloud/13-7877
[stable13] Deprecated checkLoggedIn and other old ways to access control
This commit is contained in:
commit
c25da25180
|
@ -44,6 +44,7 @@ namespace OCP;
|
||||||
* This class provides access to the user management. You can get information
|
* This class provides access to the user management. You can get information
|
||||||
* about the currently logged in user and the permissions for example
|
* about the currently logged in user and the permissions for example
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @deprecated 13.0.0
|
||||||
*/
|
*/
|
||||||
class User {
|
class User {
|
||||||
/**
|
/**
|
||||||
|
@ -99,6 +100,7 @@ class User {
|
||||||
* Check if the user is logged in
|
* Check if the user is logged in
|
||||||
* @return boolean
|
* @return boolean
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
|
||||||
*/
|
*/
|
||||||
public static function isLoggedIn() {
|
public static function isLoggedIn() {
|
||||||
return \OC::$server->getUserSession()->isLoggedIn();
|
return \OC::$server->getUserSession()->isLoggedIn();
|
||||||
|
@ -142,6 +144,7 @@ class User {
|
||||||
/**
|
/**
|
||||||
* Check if the user is a admin, redirects to home if not
|
* Check if the user is a admin, redirects to home if not
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
|
||||||
*/
|
*/
|
||||||
public static function checkAdminUser() {
|
public static function checkAdminUser() {
|
||||||
\OC_Util::checkAdminUser();
|
\OC_Util::checkAdminUser();
|
||||||
|
@ -151,6 +154,7 @@ class User {
|
||||||
* Check if the user is logged in, redirects to home if not. With
|
* Check if the user is logged in, redirects to home if not. With
|
||||||
* redirect URL parameter to the request URI.
|
* redirect URL parameter to the request URI.
|
||||||
* @since 5.0.0
|
* @since 5.0.0
|
||||||
|
* @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
|
||||||
*/
|
*/
|
||||||
public static function checkLoggedIn() {
|
public static function checkLoggedIn() {
|
||||||
\OC_Util::checkLoggedIn();
|
\OC_Util::checkLoggedIn();
|
||||||
|
|
Loading…
Reference in New Issue