apps/files_sharing/lib/ShareBackend/File.php
/**
	 * check if server2server share is enabled
	 *
	 * @param int $shareType
	 * @return boolean
	 */
check if server2server share is enabled
@param int $shareType
@return boolean
check if server2server share is enabled @param int $shareType @return boolean
public function isShareTypeAllowed($shareType) {
		if ($shareType === \OCP\Share::SHARE_TYPE_REMOTE) {
			return $this->federatedShareProvider->isOutgoingServer2serverShareEnabled();
		}
		return true;
	}
public function isShareTypeAllowed ( $ shareType ) { if ( $ shareType === \ OCP \ Share :: SHARE_TYPE_REMOTE ) { return $ this -> federatedShareProvider -> isOutgoingServer2serverShareEnabled ( ) ; } return true ; }
check if server2server share is enabled
 @param int $shareType
 @return boolean
check if server2server share is enabled @param int $shareType @return boolean