mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
fix not working permission check
This commit is contained in:
parent
29c73a8694
commit
77ab3e6531
@ -166,6 +166,8 @@ class filemanager_admin extends filemanager_ui
|
|||||||
{
|
{
|
||||||
$msg = lang('Permission denied')."\n\n".lang('You are NOT allowed to finally delete older versions and deleted files!');
|
$msg = lang('Permission denied')."\n\n".lang('You are NOT allowed to finally delete older versions and deleted files!');
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
// we need to be root to delete files independent of permissions and ownership
|
// we need to be root to delete files independent of permissions and ownership
|
||||||
Vfs::$is_root = true;
|
Vfs::$is_root = true;
|
||||||
if (!Vfs::file_exists($content['versionedpath']) || !Vfs::is_dir($content['versionedpath']))
|
if (!Vfs::file_exists($content['versionedpath']) || !Vfs::is_dir($content['versionedpath']))
|
||||||
@ -197,6 +199,7 @@ class filemanager_admin extends filemanager_ui
|
|||||||
Vfs::$is_root = false;
|
Vfs::$is_root = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (true) $content = array(
|
if (true) $content = array(
|
||||||
'versionedpath' => $content['versionedpath'],
|
'versionedpath' => $content['versionedpath'],
|
||||||
'ctime' => $content['ctime'],
|
'ctime' => $content['ctime'],
|
||||||
|
Loading…
Reference in New Issue
Block a user