public function __construct($path) { $path = rtrim($path, '/'); $this->relpath = $path; $path = \GO::config()->file_storage_path . $path; // if(!$this->_getFolder()->checkPermissionLevel(\GO\Base\Model\Acl::READ_PERMISSION)){ // \GO::debug("DAV: User ".\GO::user()->username." doesn't have write permission for ".$this->relpath); // throw new Sabre\DAV\Exception\Forbidden ("DAV: User ".\GO::user()->username." doesn't have write permission for folder '".$this->relpath.'"'); // } parent::__construct($path); }
public function __construct($path = '') { parent::__construct("Shared"); }
public function __construct($path = "") { parent::__construct(GO::config()->file_storage_path); }