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

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.