mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
* Filemanager: fixed super-user not able to create top-level directory, eg. /test
This commit is contained in:
parent
7369a71d49
commit
dd8f1090f5
@ -1247,6 +1247,11 @@ class filemanager_ui
|
||||
*/
|
||||
public static function ajax_action($action, $selected, $dir=null, $props=null)
|
||||
{
|
||||
// do we have root rights, need to run here too, as method is static and therefore does NOT run __construct
|
||||
if (egw_session::appsession('is_root','filemanager'))
|
||||
{
|
||||
egw_vfs::$is_root = true;
|
||||
}
|
||||
$response = egw_json_response::get();
|
||||
|
||||
$arr = array(
|
||||
|
@ -406,7 +406,7 @@ app.classes.filemanager = AppJS.extend(
|
||||
{
|
||||
var path = this.get_path();
|
||||
this._do_action('createdir', dir, true); // true=synchronous request
|
||||
this.change_dir(path+'/'+dir);
|
||||
this.change_dir((path == '/' ? '' : path)+'/'+dir);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user