diff options
Diffstat (limited to 'lib/public/Util.php')
-rw-r--r-- | lib/public/Util.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/public/Util.php b/lib/public/Util.php index cd6f5f34a69..c8b55bb10e2 100644 --- a/lib/public/Util.php +++ b/lib/public/Util.php @@ -547,12 +547,14 @@ class Util { } /** - * check if a password is required for each public link + * Check if a password is required for each public link + * + * @param bool $checkGroupMembership Check group membership exclusion * @return boolean * @since 7.0.0 */ - public static function isPublicLinkPasswordRequired() { - return \OC_Util::isPublicLinkPasswordRequired(); + public static function isPublicLinkPasswordRequired(bool $checkGroupMembership = true) { + return \OC_Util::isPublicLinkPasswordRequired($checkGroupMembership); } /** |