Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed getACL to return the username without domain
Inspired by anikrooz commit
1f95f9b

Signed-off-by: Christopher Gabriel <[email protected]>
  • Loading branch information
Snafu committed Apr 24, 2021
commit d2df89a02f31ac508b1d1cf9803fb9b2dced2de4
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