mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
fix cant attach files, if none have been attached to an entry before: Sqlfs\StreamWrapper::mkdir('/apps/calendar/123',0,1) already exist!
This commit is contained in:
parent
4fb658c2f3
commit
686f3af559
@ -249,8 +249,9 @@ class StreamWrapper extends LinksParent
|
||||
$current_is_root = Vfs::$is_root; Vfs::$is_root = true;
|
||||
$current_user = Vfs::$user; Vfs::$user = 0;
|
||||
|
||||
$ret = parent::mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE);
|
||||
if ($id) parent::chmod($path,0); // no other rights
|
||||
$sqlfs = new parent();
|
||||
$ret = $sqlfs->mkdir($path,0,$options|STREAM_MKDIR_RECURSIVE);
|
||||
if ($id) $sqlfs->chmod($path,0); // no other rights
|
||||
|
||||
Vfs::$user = $current_user;
|
||||
Vfs::$is_root = $current_is_root;
|
||||
|
Loading…
Reference in New Issue
Block a user