Merge pull request #28416 from nextcloud/backport/28062/stable22

[stable22] Gracefully handle smb acls for users without a domain
This commit is contained in:
Julius Härtl 2021-08-16 11:57:14 +02:00 committed by GitHub
commit 7fb8b50cf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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