diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-16 11:57:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 11:57:14 +0200 |
commit | 7fb8b50cf948be3644756440cbe3c3b8fa62135c (patch) | |
tree | cde2dd36c196ab063b661ed8820d4fa95e0a561b /apps | |
parent | fb5ee6087bfd1f4cc2f37cda7a7cab7072aaae86 (diff) | |
parent | fdd5bc8560d8b9ba32ad8b16650387056044b791 (diff) | |
download | nextcloud-server-7fb8b50cf948be3644756440cbe3c3b8fa62135c.tar.gz nextcloud-server-7fb8b50cf948be3644756440cbe3c3b8fa62135c.zip |
Merge pull request #28416 from nextcloud/backport/28062/stable22
[stable22] Gracefully handle smb acls for users without a domain
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/SMB.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index 2081824b2f8..c9d078631b8 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -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; } |