summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-08-05 10:57:13 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-08-05 10:57:51 +0200
commit41cca70a63eea6bb07565f2e4f3e68f8218eac78 (patch)
tree3d0032ec5565f2957165b1863ab4ac66ff39b970 /lib
parentc0e78d984140ecd6a49ac615214b4a68fab0557e (diff)
downloadnextcloud-server-41cca70a63eea6bb07565f2e4f3e68f8218eac78.tar.gz
nextcloud-server-41cca70a63eea6bb07565f2e4f3e68f8218eac78.zip
don't display share permission if resharing was disabled by the admin
Diffstat (limited to 'lib')
-rw-r--r--lib/private/share/share.php2
-rw-r--r--lib/public/share.php9
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 450c71cf8a2..b8e7ffa4536 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -1114,7 +1114,7 @@ class Share extends \OC\Share\Constants {
*
* Resharing is allowed by default if not configured
*/
- private static function isResharingAllowed() {
+ public static function isResharingAllowed() {
if (!isset(self::$isResharingAllowed)) {
if (\OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes') == 'yes') {
self::$isResharingAllowed = true;
diff --git a/lib/public/share.php b/lib/public/share.php
index c0939dce53f..e6519dd3e3a 100644
--- a/lib/public/share.php
+++ b/lib/public/share.php
@@ -330,6 +330,15 @@ class Share extends \OC\Share\Constants {
public static function checkPasswordProtectedShare(array $linkItem) {
return \OC\Share\Share::checkPasswordProtectedShare($linkItem);
}
+
+ /**
+ * Check if resharing is allowed
+ *
+ * @return boolean true if allowed or false
+ */
+ public static function isResharingAllowed() {
+ return \OC\Share\Share::isResharingAllowed();
+ }
}
/**