radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Gate/Policy #97

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Is your feature request related to a problem? Please describe. Determining if a user has capabilities involves using the WordPress user_can method.

Describe the solution you'd like A Gate or Policy implementation like Laravel to create and check user capabilities.

Describe alternatives you've considered user_can, current_user_can

Additional context https://wordpress.stackexchange.com/questions/345902/want-to-know-parameters-that-can-be-passed-to-user-can-for-access-control-by-u on mapping new capabilities