os_delete_prohibit

This commit is contained in:
redmatrix 2016-07-16 01:02:41 -07:00
parent 17edec8e4a
commit aac0fa2b5f

View file

@ -337,6 +337,10 @@ class File extends DAV\Node implements DAV\IFile {
}
}
if(get_pconfig($this->auth->owner_id,'system','os_delete_prohibit') && \App::$module == 'dav') {
throw new DAV\Exception\Forbidden('Permission denied.');
}
attach_delete($this->auth->owner_id, $this->data['hash']);
$ch = channelx_by_n($this->auth->owner_id);