summaryrefslogtreecommitdiffstats
path: root/settings/ajax/togglegroups.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-14 23:29:51 +0100
committerBart Visscher <bartv@thisnet.nl>2013-02-21 23:47:56 +0100
commit83f161d3f964a48f6dbe92e69233575b1984c547 (patch)
treed648e6aa95d256c9581be264905f3c5755927412 /settings/ajax/togglegroups.php
parent1a747b3e480a2b44969b1306a5d354e721781c81 (diff)
downloadnextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.tar.gz
nextcloud-server-83f161d3f964a48f6dbe92e69233575b1984c547.zip
Style cleanup settings
Diffstat (limited to 'settings/ajax/togglegroups.php')
-rw-r--r--settings/ajax/togglegroups.php4
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();