apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php
/**
	 * Check if link sharing is allowed
	 * @return bool
	 */
Check if link sharing is allowed
@return bool
Check if link sharing is allowed @return bool
private function isLinkSharingEnabled() {
		if ($this->config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') {
			return false;
		}
		if($this->config->getAppValue('core', 'shareapi_allow_links', 'yes') !== 'yes') {
			return false;
		}
		return true;
	}
private function isLinkSharingEnabled ( ) { if ( $ this -> config -> getAppValue ( 'core' , 'shareapi_enabled' , 'yes' ) !== 'yes' ) { return false ; } if ( $ this -> config -> getAppValue ( 'core' , 'shareapi_allow_links' , 'yes' ) !== 'yes' ) { return false ; } return true ; }
Check if link sharing is allowed
 @return bool
Check if link sharing is allowed @return bool
// Check if the shareAPI is enabled // Check whether public sharing is enabled