Skip to content

Commit

Permalink
Fix unnecessary permission check for REST API user
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Feb 27, 2025
1 parent 833e765 commit 73e3540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function beforeRender(\Cake\Event\EventInterface $event) {
$this->set('vv_controller', $this->request->getParam('controller'));
$this->set('vv_action', $this->request->getParam('action'));

if(isset($this->RegistryAuth)) {
if(isset($this->RegistryAuth) && !$this->request->is('restful')) {
// Components might not be loaded on error, so check
$this->set('vv_menu_permissions', $this->RegistryAuth->getMenuPermissions($this->getCOID()));

Expand Down

0 comments on commit 73e3540

Please sign in to comment.