# CakeDC/Auth Rbac checkPermissions in AppController-\>beforeFilter method in cakephp 5.x

**URL:** https://discourse.cakephp.org/t/cakedc-auth-rbac-checkpermissions-in-appcontroller-beforefilter-method-in-cakephp-5-x/11789
**Category:** Need Help
**Created:** [January 10, 2024, 1:20am UTC](https://discourse.cakephp.org/t/cakedc-auth-rbac-checkpermissions-in-appcontroller-beforefilter-method-in-cakephp-5-x/11789 "2024-01-10T01:20:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mdeanquin](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/mdeanquin/32/1802_2.png) [@mdeanquin](https://discourse.cakephp.org/u/mdeanquin)
#### Post date: [January 10, 2024, 1:20am UTC](https://discourse.cakephp.org/t/cakedc-auth-rbac-checkpermissions-in-appcontroller-beforefilter-method-in-cakephp-5-x/11789/1 "2024-01-10T01:20:50Z")

</div>

I want to check the permission for a user in a controller in AppController-\>beforeFilter but I saw that the Rbac-\>checkPermissions method receives as second parameter the request, how can I do to pass the controller name? I need it to assemble the options menu for each user.
