Last post Mar 05, 2019 07:06 AM by Yuki Tao
Mar 05, 2019 05:46 AM|aabedeni056|LINK
i want create user with access (superadmin,admin, user1,user2 ,...) .for every user create permisstion (create , edit, report ,page 1,page 2 ) .
i dont know how to do .
help me please.
Mar 05, 2019 07:06 AM|Yuki Tao|LINK
i want create user with access (superadmin,admin, user1,user2 ,...) .for every user create permisstion (create , edit, report ,page 1,page 2 )
Actually,This requires database design (user management, role management) based on your needs and your team.
Different permissions are generally given by different roles.
So you could be sure that you want to create several roles.
Then talk about the role associated with the user.
UserId UserName RoleType
1 user1 1 (Superadmin)
2 user2 2
3 user3 3 (User)
4 user4 3 (User)
5 user5 3 (User)
... ... ...
And then in your code,you could retrieve database and give CRUD function based on RoleType.