NAME
Kernel::WebApp::Controller::API::Role::HandlesACLs – Check endpoint ACL permission.
PUBLIC INTERFACE
Consume this role to be able to check which endpoint can be used according to the configured ACLs. You can do this by calling the "CheckACLAvailableEndpoints()" method in your code.
Make sure to implement EndpointContext() which is required for this role.
CheckACLAvailableEndpoints()
Check which endpoints are possible according to the ACL permissions.
my %Result = $Self->CheckACLAvailableEndpoints(
PossibleEndpoints => [
'ExternalFrontend::ProcessTicketCreate',
...
],
TicketID => 123, # (optional) TicketID (some screens don't have it)
);
Result:
%Result = (
'ExternalFrontend::ProcessTicketCreate' => 1,
...
);