diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-09 17:06:50 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-09-09 18:03:05 +0200 |
commit | d23621536c23f89785f6beea13cdc53ec2b9392f (patch) | |
tree | 29cde309ce00e235f635f90156dd0eb2a5a3341b /settings/admin.php | |
parent | 412da87e6583375f98ef1bdd755c56caab14b8ac (diff) | |
download | nextcloud-server-d23621536c23f89785f6beea13cdc53ec2b9392f.tar.gz nextcloud-server-d23621536c23f89785f6beea13cdc53ec2b9392f.zip |
Now using select2 for the groups excluded from sharing
Diffstat (limited to 'settings/admin.php')
-rwxr-xr-x | settings/admin.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/settings/admin.php b/settings/admin.php index 65deed6b883..b4064c3345e 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -54,22 +54,8 @@ $tmpl->assign('shareExpireAfterNDays', OC_Appconfig::getValue('core', 'shareapi_ $tmpl->assign('shareEnforceExpireDate', OC_Appconfig::getValue('core', 'shareapi_enforce_expire_date', 'no')); $excludeGroups = OC_Appconfig::getValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false; $tmpl->assign('shareExcludeGroups', $excludeGroups); -$allGroups = OC_Group::getGroups(); $excludedGroupsList = OC_Appconfig::getValue('core', 'shareapi_exclude_groups_list', ''); -$excludedGroups = $excludedGroupsList !== '' ? explode(',', $excludedGroupsList) : array(); -$groups = array(); -foreach ($allGroups as $group) { - if (in_array($group, $excludedGroups)) { - $groups[$group] = array('gid' => $group, - 'excluded' => true); - } else { - $groups[$group] = array('gid' => $group, - 'excluded' => false); - } -} -ksort($groups); -$tmpl->assign('groups', $groups); - +$tmpl->assign('shareExcludedGroupsList', $excludedGroupsList); // Check if connected using HTTPS $tmpl->assign('isConnectedViaHTTPS', OC_Request::serverProtocol() === 'https'); |