Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
0f18085d
Unverified
Commit
0f18085d
authored
7 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
Deprecated checkLoggedIn and other old ways to access control
Signed-off-by:
Morris Jobke
<
hey@morrisjobke.de
>
parent
a02a7593
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/public/User.php
+4
-0
4 additions, 0 deletions
lib/public/User.php
with
4 additions
and
0 deletions
lib/public/User.php
+
4
−
0
View file @
0f18085d
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment