Add `allow sharing with groups` checkbox to admin page
This commit is contained in:
parent
6aa28037c7
commit
35024beb9c
|
@ -129,6 +129,7 @@ $template->assign('allowPublicMailNotification', $appConfig->getValue('core', 's
|
||||||
$template->assign('allowMailNotification', $appConfig->getValue('core', 'shareapi_allow_mail_notification', 'no'));
|
$template->assign('allowMailNotification', $appConfig->getValue('core', 'shareapi_allow_mail_notification', 'no'));
|
||||||
$template->assign('allowShareDialogUserEnumeration', $appConfig->getValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'));
|
$template->assign('allowShareDialogUserEnumeration', $appConfig->getValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'));
|
||||||
$template->assign('onlyShareWithGroupMembers', \OC\Share\Share::shareWithGroupMembersOnly());
|
$template->assign('onlyShareWithGroupMembers', \OC\Share\Share::shareWithGroupMembersOnly());
|
||||||
|
$template->assign('allowGroupSharing', $appConfig->getValue('core', 'shareapi_allow_group_sharing', 'yes'));
|
||||||
$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false);
|
$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false);
|
||||||
$template->assign('databaseOverload', $databaseOverload);
|
$template->assign('databaseOverload', $databaseOverload);
|
||||||
$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
|
$template->assign('cronErrors', $appConfig->getValue('core', 'cronErrors'));
|
||||||
|
|
|
@ -161,6 +161,10 @@ $(document).ready(function(){
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#allowGroupSharing').change(function() {
|
||||||
|
$('#allowGroupSharing').toggleClass('hidden', !this.checked);
|
||||||
|
});
|
||||||
|
|
||||||
$('#shareapiExcludeGroups').change(function() {
|
$('#shareapiExcludeGroups').change(function() {
|
||||||
$("#selectExcludedGroups").toggleClass('hidden', !this.checked);
|
$("#selectExcludedGroups").toggleClass('hidden', !this.checked);
|
||||||
});
|
});
|
||||||
|
|
|
@ -239,6 +239,11 @@ if ($_['cronErrors']) {
|
||||||
value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
|
value="1" <?php if ($_['allowResharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
|
||||||
<label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
|
<label for="allowResharing"><?php p($l->t('Allow resharing'));?></label><br/>
|
||||||
</p>
|
</p>
|
||||||
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
|
||||||
|
<input type="checkbox" name="shareapi_allow_group_sharing" id="allowGroupSharing" class="checkbox"
|
||||||
|
value="1" <?php if ($_['allowGroupSharing'] === 'yes') print_unescaped('checked="checked"'); ?> />
|
||||||
|
<label for="allowGroupSharing"><?php p($l->t('Allow sharing with groups'));?></label><br />
|
||||||
|
</p>
|
||||||
<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
|
<p class="<?php if ($_['shareAPIEnabled'] === 'no') p('hidden');?>">
|
||||||
<input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox"
|
<input type="checkbox" name="shareapi_only_share_with_group_members" id="onlyShareWithGroupMembers" class="checkbox"
|
||||||
value="1" <?php if ($_['onlyShareWithGroupMembers']) print_unescaped('checked="checked"'); ?> />
|
value="1" <?php if ($_['onlyShareWithGroupMembers']) print_unescaped('checked="checked"'); ?> />
|
||||||
|
|
Loading…
Reference in New Issue