fix missing parameters in sharing settings page
This commit is contained in:
parent
83ba2f2e90
commit
58530ab42f
|
@ -23,9 +23,11 @@
|
||||||
|
|
||||||
namespace OC\Settings\Admin;
|
namespace OC\Settings\Admin;
|
||||||
|
|
||||||
|
use OC\Share\Share;
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\Settings\ISettings;
|
use OCP\Settings\ISettings;
|
||||||
|
use OCP\Util;
|
||||||
|
|
||||||
class Sharing implements ISettings {
|
class Sharing implements ISettings {
|
||||||
/** @var IConfig */
|
/** @var IConfig */
|
||||||
|
@ -48,12 +50,21 @@ class Sharing implements ISettings {
|
||||||
|
|
||||||
$parameters = [
|
$parameters = [
|
||||||
// Built-In Sharing
|
// Built-In Sharing
|
||||||
'shareAPIEnabled' => $this->config->getAppValue('core', 'shareapi_enabled', 'yes'),
|
'allowGroupSharing' => $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes'),
|
||||||
'shareDefaultExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no'),
|
'allowLinks' => $this->config->getAppValue('core', 'shareapi_allow_links', 'yes'),
|
||||||
'shareExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'),
|
'allowMailNotification' => $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no'),
|
||||||
'shareEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no'),
|
'allowPublicMailNotification' => $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no'),
|
||||||
'shareExcludeGroups' => $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false,
|
'allowPublicUpload' => $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'),
|
||||||
'shareExcludedGroupsList' => $excludeGroupsList,
|
'allowResharing' => $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes'),
|
||||||
|
'allowShareDialogUserEnumeration' => $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes'),
|
||||||
|
'enforceLinkPassword' => Util::isPublicLinkPasswordRequired(),
|
||||||
|
'onlyShareWithGroupMembers' => Share::shareWithGroupMembersOnly(),
|
||||||
|
'shareAPIEnabled' => $this->config->getAppValue('core', 'shareapi_enabled', 'yes'),
|
||||||
|
'shareDefaultExpireDateSet' => $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no'),
|
||||||
|
'shareExpireAfterNDays' => $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'),
|
||||||
|
'shareEnforceExpireDate' => $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no'),
|
||||||
|
'shareExcludeGroups' => $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false,
|
||||||
|
'shareExcludedGroupsList' => $excludeGroupsList,
|
||||||
];
|
];
|
||||||
|
|
||||||
return new TemplateResponse('settings', 'admin/sharing', $parameters, '');
|
return new TemplateResponse('settings', 'admin/sharing', $parameters, '');
|
||||||
|
|
|
@ -104,6 +104,4 @@
|
||||||
<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') print_unescaped('checked="checked"'); ?> />
|
<?php if ($_['allowShareDialogUserEnumeration'] === 'yes') print_unescaped('checked="checked"'); ?> />
|
||||||
<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered.'));?></label><br />
|
<label for="shareapi_allow_share_dialog_user_enumeration"><?php p($l->t('Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered.'));?></label><br />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php print_unescaped($_['fileSharingSettings']); ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue