Welcome Guest, Not a member yet? Register   Sign In
Why CI4 Shield do not store groups, permissions and rule on database
#2

(This post was last modified: 10-10-2024, 12:25 AM by luckmoshy.)

Shield normally stores roles in the database and assigns groups in the config otherwise you can also modify groups in your class to extend here is how to serve in the database 

PHP Code:
$user->addPermission('users.create''users.edit');  
https://shield.codeigniter.com/reference...orization/

PHP Code:
$user->addGroup('admin''beta'); 
Codeigniter First, Codeigniter Then You!!
yekrinaDigitals

Reply


Messages In This Thread
RE: Why CI4 Shield do not store groups, permissions and rule on database - by luckmoshy - 10-10-2024, 12:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB