***This article is part of the CakeDC Advent Calendar 2024 (December 23rd 2024)***
Authorization can become a complex topic. If you go over the options described in the CakePHP Book https://book.cakephp.org/authorization/3/en/index.html and the specific tutorial https://book.cakephp.org/5/en/tutorials-and-examples/cms/authorization.html you'll see there are options to define the authorization …