]> source.dussan.org Git - nextcloud-server.git/commitdiff
CP fail
authorLukas Reschke <lukas@statuscode.ch>
Mon, 14 Jan 2013 18:51:16 +0000 (19:51 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 14 Jan 2013 18:51:16 +0000 (19:51 +0100)
settings/ajax/setquota.php

index 89c46294d087c7fccf5bc05589ade728bf9bbd35..356466c0c002c3d509a5aef5cf3e8ff307143a8a 100644 (file)
@@ -10,7 +10,7 @@ OCP\JSON::callCheck();
 
 $username = isset($_POST["username"])?$_POST["username"]:'';
 
-if(($username == '' && !OC_User::isAdminUser($user)) || (!OC_User::isAdminUser(OC_User::getUser()) && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username))) {
+if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))|| (!OC_User::isAdminUser(OC_User::getUser()) && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username))) {
        $l = OC_L10N::get('core');
        OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
        exit();