Beispiel #1
0
 /**
  * Check if resharing is allowed
  * @return boolean true if allowed or false
  *
  * Resharing is allowed by default if not configured
  */
 public static function isResharingAllowed()
 {
     if (!isset(self::$isResharingAllowed)) {
         if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_resharing', 'yes') == 'yes') {
             self::$isResharingAllowed = true;
         } else {
             self::$isResharingAllowed = false;
         }
     }
     return self::$isResharingAllowed;
 }
Beispiel #2
0
 /**
  * Check if resharing is allowed
  * @return boolean true if allowed or false
  *
  * Resharing is allowed by default if not configured
  */
 private static function isResharingAllowed()
 {
     if (!isset(self::$isResharingAllowed)) {
         if (\OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes') == 'yes') {
             self::$isResharingAllowed = true;
         } else {
             self::$isResharingAllowed = false;
         }
     }
     return self::$isResharingAllowed;
 }