apps/gallery/lib/Service/FilesService.php
/**
	 * Determines if we can consider the node mounted locally or if it's been authorised to be
	 * scanned
	 *
	 * @param Node $node
	 *
	 * @return bool
	 */
Determines if we can consider the node mounted locally or if it's been authorised to be
scanned

@param Node $node

@return bool
Determines if we can consider the node mounted locally or if it ' s been authorised to be scanned @param Node $node @return bool
private function isAllowed($node) {
		$allowed = true;
		if ($this->isExternalShare($node)) {
			$allowed = $this->isExternalShareAllowed();
		}
		if ($node->isMounted()) {
			$mount = $node->getMountPoint();
			$allowed = $mount && $mount->getOption('previews', true);
		}
		return $allowed;
	}
private function isAllowed ( $ node ) { $ allowed = true ; if ( $ this -> isExternalShare ( $ node ) ) { $ allowed = $ this -> isExternalShareAllowed ( ) ; } if ( $ node -> isMounted ( ) ) { $ mount = $ node -> getMountPoint ( ) ; $ allowed = $ mount && $ mount -> getOption ( 'previews' , true ) ; } return $ allowed ; }
Determines if we can consider the node mounted locally or if it's been authorised to be
 scanned
Determines if we can consider the node mounted locally or if it ' s been authorised to be scanned