public function alwaysAllowed() : bool

Fires while checking the accessibility of the event.


Description

Returns true if the plugin is always authorised, otherwise false. When this value is false, the system will need to authorise the plugin through the permissions configured for the authenticated user.

In case the plugin doesn't override this method, it will be possibile to choose from the configuration of the user whether the latter is allowed or not to execute this event. Alternatively, in case the overridden method always returns true, the user configuration won't allow the possibility to disable the execution of this event.

Even if the plugin is always allowed, only authenticated users are able to execute it.


Return Value

Boolean. Returns true to always allow the execution of the event for all the logged in users, otherwise false to rely on their permissions.

Last Update: 2023-12-29 14:15
Helpful?