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
08324048
Commit
08324048
authored
9 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
Remove unreachable code in priavte/api.php
parent
ac367b97
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/private/api.php
+0
-5
0 additions, 5 deletions
lib/private/api.php
with
0 additions
and
5 deletions
lib/private/api.php
+
0
−
5
View file @
08324048
...
@@ -292,11 +292,9 @@ class OC_API {
...
@@ -292,11 +292,9 @@ class OC_API {
case
API
::
GUEST_AUTH
:
case
API
::
GUEST_AUTH
:
// Anyone can access
// Anyone can access
return
true
;
return
true
;
break
;
case
API
::
USER_AUTH
:
case
API
::
USER_AUTH
:
// User required
// User required
return
self
::
loginUser
();
return
self
::
loginUser
();
break
;
case
API
::
SUBADMIN_AUTH
:
case
API
::
SUBADMIN_AUTH
:
// Check for subadmin
// Check for subadmin
$user
=
self
::
loginUser
();
$user
=
self
::
loginUser
();
...
@@ -315,7 +313,6 @@ class OC_API {
...
@@ -315,7 +313,6 @@ class OC_API {
return
false
;
return
false
;
}
}
}
}
break
;
case
API
::
ADMIN_AUTH
:
case
API
::
ADMIN_AUTH
:
// Check for admin
// Check for admin
$user
=
self
::
loginUser
();
$user
=
self
::
loginUser
();
...
@@ -324,11 +321,9 @@ class OC_API {
...
@@ -324,11 +321,9 @@ class OC_API {
}
else
{
}
else
{
return
OC_User
::
isAdminUser
(
$user
);
return
OC_User
::
isAdminUser
(
$user
);
}
}
break
;
default
:
default
:
// oops looks like invalid level supplied
// oops looks like invalid level supplied
return
false
;
return
false
;
break
;
}
}
}
}
...
...
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