diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2021-07-20 13:14:32 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2021-08-13 09:43:50 +0200 |
commit | 2e53cf4c1f6c702b0f7ce69c714bcbbfd9a6a32a (patch) | |
tree | a214e763d6b99363aca2b734edf8d01ce9aaee57 /apps/files_external | |
parent | 05ec2faea8e2333ee96059d17c707322cfd279ea (diff) | |
download | nextcloud-server-2e53cf4c1f6c702b0f7ce69c714bcbbfd9a6a32a.tar.gz nextcloud-server-2e53cf4c1f6c702b0f7ce69c714bcbbfd9a6a32a.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 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; } |