File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
apps/settings/lib/Settings/Admin Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function getForm() {
5858 'restrictUserEnumerationFullMatchDisplayname ' => $ this ->shareManager ->matchDisplayName (),
5959 'restrictUserEnumerationFullMatchEmail ' => $ this ->shareManager ->matchEmail (),
6060 'restrictUserEnumerationFullMatchIgnoreSecondDN ' => $ this ->shareManager ->ignoreSecondDisplayName (),
61- 'enforceLinksPassword ' => Util:: isPublicLinkPasswordRequired (false ),
61+ 'enforceLinksPassword ' => $ this -> shareManager -> shareApiLinkEnforcePassword (false ),
6262 'enforceLinksPasswordExcludedGroups ' => json_decode ($ excludedPasswordGroups ) ?? [],
6363 'enforceLinksPasswordExcludedGroupsEnabled ' => $ this ->config ->getSystemValueBool ('sharing.allow_disabled_password_enforcement_groups ' , false ),
6464 'onlyShareWithGroupMembers ' => $ this ->shareManager ->shareWithGroupMembersOnly (),
Original file line number Diff line number Diff line change @@ -592,15 +592,18 @@ public static function naturalSortCompare($a, $b) {
592592 * @param bool $checkGroupMembership Check group membership exclusion
593593 * @return boolean
594594 * @since 7.0.0
595+ * @deprecated 34.0.0 use OCP\Share\IManager's shareApiLinkEnforcePassword directly
595596 */
596597 public static function isPublicLinkPasswordRequired (bool $ checkGroupMembership = true ) {
597598 return \OC_Util::isPublicLinkPasswordRequired ($ checkGroupMembership );
598599 }
599600
600601 /**
601- * check if share API enforces a default expire date
602+ * Check if share API enforces a default expire date
603+ *
602604 * @return boolean
603605 * @since 8.0.0
606+ * @deprecated 34.0.0 use OCP\Share\IManager's shareApiLinkDefaultExpireDateEnforced directly
604607 */
605608 public static function isDefaultExpireDateEnforced () {
606609 return \OC_Util::isDefaultExpireDateEnforced ();
You can’t perform that action at this time.
0 commit comments