fix not working permission check

This commit is contained in:
Ralf Becker 2016-01-21 12:02:00 +00:00
parent 29c73a8694
commit 77ab3e6531

View File

@ -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!');
}
else
{
// we need to be root to delete files independent of permissions and ownership
Vfs::$is_root = true;
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;
}
}
}
if (true) $content = array(
'versionedpath' => $content['versionedpath'],
'ctime' => $content['ctime'],