mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 14:28:45 +01: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
18f5b8ad93
commit
b444969a86
@ -727,7 +727,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…
Reference in New Issue
Block a user