diff options
author | Björn Schießle <schiessle@owncloud.com> | 2014-05-16 12:23:01 -0400 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2014-05-16 12:23:01 -0400 |
commit | b52cb8f5570f4ec0e73aa5b2e1a5dbd178135382 (patch) | |
tree | 8e622b686a60a49bbe6cf21469a232dcb72e6eea /lib/public | |
parent | d5f60a8eb0b3521ba0d85e9191468f09ea37803e (diff) | |
parent | b6e14af861481d0b2ebf6ca752d994c5adfce866 (diff) | |
download | nextcloud-server-b52cb8f5570f4ec0e73aa5b2e1a5dbd178135382.tar.gz nextcloud-server-b52cb8f5570f4ec0e73aa5b2e1a5dbd178135382.zip |
Merge pull request #8604 from owncloud/sharing_encforce_password
allow admin to enforce passwords for public link shares
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/util.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/util.php b/lib/public/util.php index 8aeb03aef8e..929d86859a1 100644 --- a/lib/public/util.php +++ b/lib/public/util.php @@ -499,4 +499,12 @@ class Util { public static function generateRandomBytes($length = 30) { return \OC_Util::generateRandomBytes($length); } + + /** + * @brief check if a password is required for each public link + * @return boolean + */ + public static function isPublicLinkPasswordRequired() { + return \OC_Util::isPublicLinkPasswordRequired(); + } } |