mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
os_delete_prohibit
This commit is contained in:
parent
17edec8e4a
commit
aac0fa2b5f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue