diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-01-14 19:51:16 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-01-14 19:51:16 +0100 |
commit | fef73d96d1da8ac98d43674bc00f0159f92e219e (patch) | |
tree | f9a5616dd1c225087d28aa8cf5ded6154889fcc0 /settings | |
parent | 31b1a73e1f508a33843835b632ee05c7bfc2aaaf (diff) | |
download | nextcloud-server-fef73d96d1da8ac98d43674bc00f0159f92e219e.tar.gz nextcloud-server-fef73d96d1da8ac98d43674bc00f0159f92e219e.zip |
CP fail
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/setquota.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index 89c46294d08..356466c0c00 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -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(); |