示例#1
0
文件: share.php 项目: evanjt/core
 /**
  * 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;
 }
示例#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;
 }