mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
calling (static) EGroupware\Api\Vfs::chown instead of using old egw_vfs not available in minimal install in account::deleted hook when moving home directory to /home/$new_user/old-home-$old_user
This commit is contained in:
parent
43432ca501
commit
afafc8ccba
@ -742,7 +742,7 @@ class Vfs
|
|||||||
throw new Exception\AssertionFailed(__METHOD__.'('.array2string($urls).") Cautiously rejecting to remove folder '$url'!");
|
throw new Exception\AssertionFailed(__METHOD__.'('.array2string($urls).") Cautiously rejecting to remove folder '$url'!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return self::find($urls,array('depth'=>true,'url'=>$allow_urls,'hidden'=>true),array(__CLASS__,'_rm_rmdir'));
|
return self::find($urls, array('depth'=>true,'url'=>$allow_urls,'hidden'=>true), __CLASS__.'::_rm_rmdir');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -96,7 +96,7 @@ class Hooks
|
|||||||
}
|
}
|
||||||
Api\Vfs::rename('/home/'.$data['account_lid'],$new_dir);
|
Api\Vfs::rename('/home/'.$data['account_lid'],$new_dir);
|
||||||
// make the new owner the owner of the dir and it's content
|
// make the new owner the owner of the dir and it's content
|
||||||
Api\Vfs::find($new_dir,array(),array('egw_vfs','chown'),$data['new_owner']);
|
Api\Vfs::find($new_dir, array(), 'EGroupware\Api\Vfs::chown', $data['new_owner']);
|
||||||
}
|
}
|
||||||
elseif(!empty($data['account_lid']) && $data['account_lid'] != '/')
|
elseif(!empty($data['account_lid']) && $data['account_lid'] != '/')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user