summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-16 10:41:55 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-16 10:43:03 +0100
commit09908a737f932361bffe64528e75da14a1089007 (patch)
tree1523226121037c2f047065311bb4912ad1fba090 /lib/public
parent43a53c0c8e93fed16b7adf5a0244a2f7b8fdbc58 (diff)
downloadnextcloud-server-09908a737f932361bffe64528e75da14a1089007.tar.gz
nextcloud-server-09908a737f932361bffe64528e75da14a1089007.zip
Deprecated checkLoggedIn and other old ways to access control
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/User.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/User.php b/lib/public/User.php
index 40be50dd19c..fd39b103d65 100644
--- a/lib/public/User.php
+++ b/lib/public/User.php
@@ -44,6 +44,7 @@ namespace OCP;
* This class provides access to the user management. You can get information
* about the currently logged in user and the permissions for example
* @since 5.0.0
+ * @deprecated 13.0.0
*/
class User {
/**
@@ -99,6 +100,7 @@ class User {
* Check if the user is logged in
* @return boolean
* @since 5.0.0
+ * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
*/
public static function isLoggedIn() {
return \OC::$server->getUserSession()->isLoggedIn();
@@ -142,6 +144,7 @@ class User {
/**
* Check if the user is a admin, redirects to home if not
* @since 5.0.0
+ * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
*/
public static function checkAdminUser() {
\OC_Util::checkAdminUser();
@@ -151,6 +154,7 @@ class User {
* Check if the user is logged in, redirects to home if not. With
* redirect URL parameter to the request URI.
* @since 5.0.0
+ * @deprecated 13.0.0 Use annotation based ACLs from the AppFramework instead
*/
public static function checkLoggedIn() {
\OC_Util::checkLoggedIn();