mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Filemanager: Fix root access was stopped after removing custom ACL
This commit is contained in:
parent
b7fab5d414
commit
0fe953b449
@ -1178,11 +1178,11 @@ class filemanager_ui
|
|||||||
|
|
||||||
$button = @key($content['button']);
|
$button = @key($content['button']);
|
||||||
unset($content['button']);
|
unset($content['button']);
|
||||||
if(!$button && $content['sudo'])
|
if(!$button && $content['sudo'] && $content['sudouser'])
|
||||||
{
|
{
|
||||||
// Button to stop sudo is not in button namespace
|
// Button to stop sudo is not in button namespace
|
||||||
$button = 'sudo';
|
$button = 'sudo';
|
||||||
unset($content['sudo']);
|
unset($content['sudo'], $content['sudouser']);
|
||||||
}
|
}
|
||||||
// need to check 'setup' button (submit button in sudo popup), as some browsers (eg. chrome) also fill the hidden field
|
// need to check 'setup' button (submit button in sudo popup), as some browsers (eg. chrome) also fill the hidden field
|
||||||
if ($button == 'sudo' && Vfs::$is_root || $button == 'setup' && $content['sudo']['user'])
|
if ($button == 'sudo' && Vfs::$is_root || $button == 'setup' && $content['sudo']['user'])
|
||||||
|
Loading…
Reference in New Issue
Block a user