This commit is contained in:
Ant Nikrooz 2021-06-02 15:36:14 -04:00 committed by GitHub
commit 40307ce117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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] = strpos($user, '\\') ? explode('\\', $user) : ['','']; // strip domain
if ($user === $this->server->getAuth()->getUsername()) {
return $acl;
}