Kernel::WebApp::Controller::API::Role::ChecksACLEndpointAuthorization

NAME

Kernel::WebApp::Controller::API::Role::ChecksACLEndpointAuthorization – Check endpoint ACL permission.

PUBLIC INTERFACE

Consume this role to be able to check if the current endpoint can be used according to the configured ACLs. It works by wrapping a default implementation around Kernel::WebApp::Controller::API::Base::Authorize().

You can still provide your own Authorize() method to perform additional checks in the endpoint.

Make sure to implement EndpointContext() which is required for this role.

ChecksACLEndpointAuthorizationTicketID()

This method returns the TicketID to be used for the permission check. It gets the :TicketID attribute of the param, if exists, otherwise, checks for TicketNumber also in param and use TicketIDLookup() to find TicketID.

Scroll to Top