English (United Kingdom)
Knowledge Base  >  Vik Restaurants  >  Hooks  >  API  >  Event Development  >  User Permissions

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-19
Helpful?

This website uses cookies

This website uses cookies and similar technologies. Some of these technologies are necessary for the proper functioning of the website (Essential). Other technologies are used to evaluate user behavior (Analysis), to integrate external media or for advertising purposes. If you agree, these technologies are activated. For details, please refer to the privacy policy. From this same page you can also update/revoke your consent. If you do not give your consent, only cookies with essential functions will be activated.

We use technologies from the USA on our website. If you give your consent, you therefore consent at the same time to your data being transferred to the USA. We would like to point out that the USA does not have a level of data protection comparable to that of the EU and that any US company can be obliged by state authorities to hand over your data without you having any effective legal protection against this.