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:45:50 +0000 |
commit | fdd5bc8560d8b9ba32ad8b16650387056044b791 (patch) | |
tree | d9b5bb94adb7f4c41bafd47251f03b3004769a3f | |
parent | a822e88d24904b3e1a18d12454273f60bf23452b (diff) | |
download | nextcloud-server-fdd5bc8560d8b9ba32ad8b16650387056044b791.tar.gz nextcloud-server-fdd5bc8560d8b9ba32ad8b16650387056044b791.zip |
Gracefully handle smb acls for users without a domain
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
-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; } |