Skip to content

Commit

Permalink
fix access in protected region
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Oct 7, 2024
1 parent 6da9b39 commit 39a2603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/EditorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public function users($fileId, $operationType = null) {
if ($user->getUID() != $currentUserId && (!empty($email) || $operationType === "protect")) {
$userElement = [
"name" => $user->getDisplayName(),
"id" => $user->getUID()
"id" => $operationType === "protect" ? $this->buildUserId($user->getUID()) : $user->getUID()
];
if (!empty($email)) {
$userElement["email"] = $email;
Expand Down

0 comments on commit 39a2603

Please sign in to comment.