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/togglegroups.php | |
parent | 1a747b3e480a2b44969b1306a5d354e721781c81 (diff) | |
download | nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.tar.gz nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.zip |
Style cleanup settings
Diffstat (limited to 'settings/ajax/togglegroups.php')
-rw-r--r-- | settings/ajax/togglegroups.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |