Skip to content

Commit

Permalink
Display: Updated validation on showing command form
Browse files Browse the repository at this point in the history
  • Loading branch information
mgbaybay committed Aug 28, 2024
1 parent e043fee commit 121df67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/DisplayGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,7 @@ public function commandForm(Request $request, Response $response, $id)
$displayGroup = $this->displayGroupFactory->getById($id);

// Non-destructive edit-only feature; allow limited view access
if (!$this->getUser()->checkEditable($displayGroup) || !$this->getUser()->featureEnabled('displays.limitedView')) {
if (!$this->getUser()->checkEditable($displayGroup) && !$this->getUser()->featureEnabled('displays.limitedView')) {
throw new AccessDeniedException();
}

Expand Down

0 comments on commit 121df67

Please sign in to comment.