mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #28416 from nextcloud/backport/28062/stable22
[stable22] Gracefully handle smb acls for users without a domain
This commit is contained in:
commit
7fb8b50cf9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue