Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-31 01:55:48 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-31 01:55:48 +0400
commit5ca03f851ee83156d5ef3623a7579707dc52518b (patch)
tree8487ee62123d8e5a19d9b50ffaee2f2a18293ad1 /lib
parent126f0ddf3c86b0a68873fdf0dff4a22b9b44f7cf (diff)
call \OC_Util::checkLoggedIn() on checkSubAdminUser() as well
Diffstat (limited to 'lib')
-rwxr-xr-xlib/util.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index da2cba1b938..12c399695dc 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -437,6 +437,7 @@ class OC_Util {
* @return array $groups where the current user is subadmin
*/
public static function checkSubAdminUser() {
+ \OC_Util::checkLoggedIn();
if(!OC_SubAdmin::isSubAdmin(OC_User::getUser())) {
header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
exit();