Gracefully handle smb acls for users without a domain

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
pull/28062/head
Richard Steinmetz 5 years ago
parent 05ec2faea8
commit 2e53cf4c1f
No known key found for this signature in database
GPG Key ID: 31BA3356F0FA2874
  1. 2
      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;
}

Loading…
Cancel
Save