framework
framework copied to clipboard
Setup a capabilities configuration file
Propose a structure in order to define a list of capabilities and to which roles they have to be associated.
This feature cannot be scheduled for the next release. However I think we should provide a console command to handle the capabilities as for now, WordPress needs 2 http requests to take them into account: the first one just to store/update the capabilities list in the options table and the second request where new capabilities are taken into account for the application.
Leveraging a console command will make sure that at user first request, the capabilities are set.
Need to look how this can also be merged with authorization mechanism from Laravel.