Hi there. We have created our own Panel View plug-in and would like to restrict access to it for certain roles.
Unfortunately, everything I found in the documentation was not enough for my goal.
I can restrict the API for the Panel View and prevent API requests from being called up using if queries - but unfortunately I cannot completely deactivate the item in the menu / make it unclickable (like the settings etc.).
Since individual, public users need API access, I apparently cannot completely block access to the panel, otherwise the API will no longer work. That’s why I’m now trying to limit everything possible for the case that a user who likes experiments, tries to log in via the panel.
Does anyone have any idea how to do this? I tried the following in the roles blueprint. Unfortunately without success:
title: Public
description: The description
permissions:
myplugin.helpdesk: false
access:
*: false
myplugin.helpdesk: false
panel: true
site: false
pages: false
languages: false
users: false
files: false
user: false