Fixed getACL to return the username without domain
Inspired by anikrooz commit
1f95f9b479
Signed-off-by: Christopher Gabriel <stuff@c-gabriel.at>
This commit is contained in:
parent
39764b05b1
commit
d2df89a02f
|
@ -219,7 +219,7 @@ class SMB extends Common implements INotifyStorage {
|
|||
private function getACL(IFileInfo $file): ?ACL {
|
||||
$acls = $file->getAcls();
|
||||
foreach ($acls as $user => $acl) {
|
||||
[, $user] = explode('\\', $user); // strip domain
|
||||
[, $user] = $this->splitUser($user); // strip domain
|
||||
if ($user === $this->server->getAuth()->getUsername()) {
|
||||
return $acl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue