aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2021-08-13 10:38:41 +0200
committerGitHub <noreply@github.com>2021-08-13 10:38:41 +0200
commitfa56c13484afa1baf908b93ed5b6990c6a0e9ad6 (patch)
treea214e763d6b99363aca2b734edf8d01ce9aaee57 /apps
parent05ec2faea8e2333ee96059d17c707322cfd279ea (diff)
parent2e53cf4c1f6c702b0f7ce69c714bcbbfd9a6a32a (diff)
downloadnextcloud-server-fa56c13484afa1baf908b93ed5b6990c6a0e9ad6.tar.gz
nextcloud-server-fa56c13484afa1baf908b93ed5b6990c6a0e9ad6.zip
Merge pull request #28062 from nextcloud/fix/27809/smb-acl-users-without-domain
Gracefully handle smb acls for users without a domain
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
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;
}