diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-22 19:02:51 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-22 19:02:51 +0400 |
commit | e8da90d0f45ab870e3d5da6c766159c87bbb1b68 (patch) | |
tree | 9010016688ef9b7d357b7cda8c047dc9340a2e1d /settings/ajax | |
parent | 5c76fffc01cb01fca41863b9a35ea5f14175b861 (diff) | |
parent | 59582e0f3fb395378b88aec2a6d0689bb2ac039e (diff) |
Merge pull request #1711 from owncloud/style-cleanup
Codestyle cleanup
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/setquota.php | 4 | ||||
-rw-r--r-- | settings/ajax/togglegroups.php | 4 |
2 files changed, 6 insertions, 2 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(); diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 9bba9c5269d..f6fd9aba6d9 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -13,7 +13,9 @@ if($username == OC_User::getUser() && $group == "admin" && OC_User::isAdminUser exit(); } -if(!OC_User::isAdminUser(OC_User::getUser()) && (!OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username) || !OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group))) { +if(!OC_User::isAdminUser(OC_User::getUser()) + && (!OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username) + || !OC_SubAdmin::isGroupAccessible(OC_User::getUser(), $group))) { $l = OC_L10N::get('core'); OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); exit(); |