CodeIgniter Forums
Shield: how to create user-permission level ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Shield: how to create user-permission level ? (/showthread.php?tid=91369)



Shield: how to create user-permission level ? - SonzoXide - 07-29-2024

Hey guys,
I would like to ask about how to create any custom user-permission using shield (I don't know the keywords Huh ).
For example: 
- I have a table for brands, say it's brand A, B, C, and so on.
- I want to set the exact user, let's say 'John' have access only for brand A and C. and throws forbidden access if tries to access the other brand.

Many thanks!


RE: Shield: how to create user-permission level ? - InsiteFX - 07-29-2024

SEE: Authorization, Groups and Permissions.
Create groups than add permissions to the groups.

CodeIgniter 4 Shield Users Guide - Authorization