mirror of
https://github.com/nextcloud/server.git
synced 2026-06-05 23:06:48 -04:00
Merge pull request #47714 from nextcloud/backport/47674/stable28
This commit is contained in:
commit
f033e32af6
5 changed files with 13 additions and 13 deletions
|
|
@ -80,8 +80,8 @@ class Sharing implements IDelegatedSettings {
|
|||
'restrictUserEnumerationFullMatchEmail' => $this->getHumanBooleanConfig('core', 'shareapi_restrict_user_enumeration_full_match_email', true),
|
||||
'restrictUserEnumerationFullMatchIgnoreSecondDN' => $this->getHumanBooleanConfig('core', 'shareapi_restrict_user_enumeration_full_match_ignore_second_dn'),
|
||||
'enforceLinksPassword' => Util::isPublicLinkPasswordRequired(false),
|
||||
'passwordExcludedGroups' => json_decode($excludedPasswordGroups) ?? [],
|
||||
'passwordExcludedGroupsFeatureEnabled' => $this->config->getSystemValueBool('sharing.allow_disabled_password_enforcement_groups', false),
|
||||
'enforceLinksPasswordExcludedGroups' => json_decode($excludedPasswordGroups) ?? [],
|
||||
'enforceLinksPasswordExcludedGroupsEnabled' => $this->config->getSystemValueBool('sharing.allow_disabled_password_enforcement_groups', false),
|
||||
'onlyShareWithGroupMembers' => $this->shareManager->shareWithGroupMembersOnly(),
|
||||
'defaultExpireDate' => $this->getHumanBooleanConfig('core', 'shareapi_default_expire_date'),
|
||||
'expireAfterNDays' => $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7'),
|
||||
|
|
|
|||
|
|
@ -55,9 +55,9 @@
|
|||
<NcCheckboxRadioSwitch :checked.sync="settings.enforceLinksPassword" :disabled="!settings.enableLinkPasswordByDefault">
|
||||
{{ t('settings', 'Enforce password protection') }}
|
||||
</NcCheckboxRadioSwitch>
|
||||
<label v-if="settings.passwordExcludedGroupsFeatureEnabled" class="sharing__labeled-entry sharing__input">
|
||||
<label v-if="settings.enforceLinksPasswordExcludedGroupsEnabled" class="sharing__labeled-entry sharing__input">
|
||||
<span>{{ t('settings', 'Exclude groups from password requirements') }}</span>
|
||||
<NcSettingsSelectGroup v-model="settings.passwordExcludedGroups"
|
||||
<NcSettingsSelectGroup v-model="settings.enforceLinksPasswordExcludedGroups"
|
||||
style="width: 100%"
|
||||
:disabled="!settings.enforceLinksPassword || !settings.enableLinkPasswordByDefault" />
|
||||
</label>
|
||||
|
|
@ -214,8 +214,8 @@ interface IShareSettings {
|
|||
restrictUserEnumerationFullMatchEmail: boolean
|
||||
restrictUserEnumerationFullMatchIgnoreSecondDN: boolean
|
||||
enforceLinksPassword: boolean
|
||||
passwordExcludedGroups: string[]
|
||||
passwordExcludedGroupsFeatureEnabled: boolean
|
||||
enforceLinksPasswordExcludedGroups: string[]
|
||||
enforceLinksPasswordExcludedGroupsEnabled: boolean
|
||||
onlyShareWithGroupMembers: boolean
|
||||
defaultExpireDate: boolean
|
||||
expireAfterNDays: string
|
||||
|
|
|
|||
|
|
@ -161,8 +161,8 @@ class SharingTest extends TestCase {
|
|||
'remoteExpireAfterNDays' => '7',
|
||||
'enforceRemoteExpireDate' => false,
|
||||
'allowLinksExcludeGroups' => [],
|
||||
'passwordExcludedGroups' => [],
|
||||
'passwordExcludedGroupsFeatureEnabled' => false,
|
||||
'enforceLinksPasswordExcludedGroups' => [],
|
||||
'enforceLinksPasswordExcludedGroupsEnabled' => false,
|
||||
]
|
||||
],
|
||||
);
|
||||
|
|
@ -252,8 +252,8 @@ class SharingTest extends TestCase {
|
|||
'remoteExpireAfterNDays' => '7',
|
||||
'enforceRemoteExpireDate' => false,
|
||||
'allowLinksExcludeGroups' => [],
|
||||
'passwordExcludedGroups' => [],
|
||||
'passwordExcludedGroupsFeatureEnabled' => false,
|
||||
'enforceLinksPasswordExcludedGroups' => [],
|
||||
'enforceLinksPasswordExcludedGroupsEnabled' => false,
|
||||
]
|
||||
],
|
||||
);
|
||||
|
|
|
|||
4
dist/settings-vue-settings-admin-sharing.js
vendored
4
dist/settings-vue-settings-admin-sharing.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue