diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2021-07-20 13:14:32 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-08-13 08:43:29 +0000 |
commit | 65d3f20b72069e49f771fe591a7a2385d01c745d (patch) | |
tree | bf846885b298ee4e0e2152d6180caa50071abf5f /apps/files_external | |
parent | f0c37a16d105a2f52deafed58cc2f8bb7b2bb63f (diff) | |
download | nextcloud-server-65d3f20b72069e49f771fe591a7a2385d01c745d.tar.gz nextcloud-server-65d3f20b72069e49f771fe591a7a2385d01c745d.zip |
Gracefully handle smb acls for users without a domain
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/files_external')
-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 e795e7cfd92..e07bea73210 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; } |