Merge pull request #28414 from nextcloud/backport/28062/stable20

[stable20] Gracefully handle smb acls for users without a domain
This commit is contained in:
MichaIng 2021-08-15 12:33:04 +02:00 committed by GitHub
commit 03613b2666
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;
}