mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Gracefully handle smb acls for users without a domain
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
05ec2faea8
commit
2e53cf4c1f
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