RBAC Check Desitnation url access

The user has access to only a limited set of menu items / links.

When the user does not have access I want to display [no access]

The best would be to generate a global functionality where I can pass in the destination url, and the result is acccess or no access.

Is there such a functionality?

if not, how can I check if a user has access to a specific controller/action (based on the rules sent in the destination /controller/action behavior)

No, there’s no built-in functionality like that. You can either create custom Rule class or create permission per controller action.

http://www.yiiframework.com/doc-2.0/guide-security-authorization.html