]> source.dussan.org Git - nextcloud-server.git/commitdiff
Gracefully handle smb acls for users without a domain 28415/head
authorRichard Steinmetz <richard@steinmetz.cloud>
Tue, 20 Jul 2021 11:14:32 +0000 (13:14 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 13 Aug 2021 08:43:29 +0000 (08:43 +0000)
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
apps/files_external/lib/Lib/Storage/SMB.php

index e795e7cfd9212201eab09e7d4748ba3907cc6379..e07bea73210053492e1fefd43aeda5b7de7a8fe6 100644 (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;
                        }