Closed rahulsinh closed 9 years ago
There's no need to store type in user table. Your type is a Role
in terms of RBAC and permissions are Permission
. Hierarchy would be the following:
Customer // Role
Create // can create
Update // can update
Delete // can delete
Admin // Role
Customer // can do everything Customer can
ViewStats // additionally can view stats
Then you're assigning either Customer
or Admin
to your users using RBAC API.
@samdark how to use yii2-user extension in yii advanced application because there are already signup and login property how to replace with yii2-user extension.
@rahulsinh I don't know. I've never used yii2-user.
@samdark thanks for Your response
@samdark Hii i want to give permission to create,update and delete according to user type for example user type is customer so there are many customer are there so i am not given permission according User_id if user type is customer then he can not create ,update or delete so auth_assignment table define type and use type for permisssion.