mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
refactor(utils): Mark share related methods as deprecated
The underlying OC_Utils methods are already deprecated Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
32bc6f54d3
commit
4caa444f90
2 changed files with 5 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ class Sharing implements IDelegatedSettings {
|
|||
'restrictUserEnumerationFullMatchDisplayname' => $this->shareManager->matchDisplayName(),
|
||||
'restrictUserEnumerationFullMatchEmail' => $this->shareManager->matchEmail(),
|
||||
'restrictUserEnumerationFullMatchIgnoreSecondDN' => $this->shareManager->ignoreSecondDisplayName(),
|
||||
'enforceLinksPassword' => Util::isPublicLinkPasswordRequired(false),
|
||||
'enforceLinksPassword' => $this->shareManager->shareApiLinkEnforcePassword(false),
|
||||
'enforceLinksPasswordExcludedGroups' => json_decode($excludedPasswordGroups) ?? [],
|
||||
'enforceLinksPasswordExcludedGroupsEnabled' => $this->config->getSystemValueBool('sharing.allow_disabled_password_enforcement_groups', false),
|
||||
'onlyShareWithGroupMembers' => $this->shareManager->shareWithGroupMembersOnly(),
|
||||
|
|
|
|||
|
|
@ -547,15 +547,18 @@ class Util {
|
|||
* @param bool $checkGroupMembership Check group membership exclusion
|
||||
* @return boolean
|
||||
* @since 7.0.0
|
||||
* @deprecated 34.0.0 use OCP\Share\IManager's shareApiLinkEnforcePassword directly
|
||||
*/
|
||||
public static function isPublicLinkPasswordRequired(bool $checkGroupMembership = true) {
|
||||
return \OC_Util::isPublicLinkPasswordRequired($checkGroupMembership);
|
||||
}
|
||||
|
||||
/**
|
||||
* check if share API enforces a default expire date
|
||||
* Check if share API enforces a default expire date
|
||||
*
|
||||
* @return boolean
|
||||
* @since 8.0.0
|
||||
* @deprecated 34.0.0 use OCP\Share\IManager's shareApiLinkDefaultExpireDateEnforced directly
|
||||
*/
|
||||
public static function isDefaultExpireDateEnforced() {
|
||||
return \OC_Util::isDefaultExpireDateEnforced();
|
||||
|
|
|
|||
Loading…
Reference in a new issue