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:
Christopher Gabriel 2021-04-24 10:05:21 +02:00
parent 39764b05b1
commit d2df89a02f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}