Skip to content

Commit

Permalink
Merge pull request #28062 from nextcloud/fix/27809/smb-acl-users-with…
Browse files Browse the repository at this point in the history
…out-domain

Gracefully handle smb acls for users without a domain
  • Loading branch information
st3iny authored Aug 13, 2021
2 parents 05ec2fa + 2e53cf4 commit fa56c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Storage/SMB.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ protected function throwUnavailable(\Exception $e) {
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;
}
Expand Down

0 comments on commit fa56c13

Please sign in to comment.