Merge pull request #28062 from nextcloud/fix/27809/smb-acl-users-without-domain

Gracefully handle smb acls for users without a domain
pull/28417/head
Richard Steinmetz 5 years ago committed by GitHub
commit fa56c13484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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