We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71109b7 commit ba7a9c8Copy full SHA for ba7a9c8
apps/files_external/lib/Lib/Storage/SMB.php
@@ -219,7 +219,7 @@ protected function throwUnavailable(\Exception $e) {
219
private function getACL(IFileInfo $file): ?ACL {
220
$acls = $file->getAcls();
221
foreach ($acls as $user => $acl) {
222
- [, $user] = explode('\\', $user); // strip domain
+ $user = array_slice(explode('\\', $user), -1)[0]; // strip domain
223
if ($user === $this->server->getAuth()->getUsername()) {
224
return $acl;
225
}
0 commit comments