diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-14 23:29:51 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-21 23:47:56 +0100 |
commit | 83f161d3f964a48f6dbe92e69233575b1984c547 (patch) | |
tree | d648e6aa95d256c9581be264905f3c5755927412 /settings/ajax/setquota.php | |
parent | 1a747b3e480a2b44969b1306a5d354e721781c81 (diff) | |
download | nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.tar.gz nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.zip |
Style cleanup settings
Diffstat (limited to 'settings/ajax/setquota.php')
-rw-r--r-- | settings/ajax/setquota.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index 356466c0c00..cd8dc0e2796 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -10,7 +10,9 @@ OCP\JSON::callCheck(); $username = isset($_POST["username"])?$_POST["username"]:''; -if(($username == '' && !OC_User::isAdminUser(OC_User::getUser()))|| (!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(); |