-
I have installed usre module, SRBAC module for my yii project. SRBAC working properly.
-
Now i want to give permission on Department, that Super Admin can do create, update, delete dept, while other user can only view
My DepartmentController starts by
"class DepartmentController extends SBaseController"
-
I have created 2 users named UserA, UserB
-
Created auth item for dept using srbac
5279
-
Assigned SuperAdmin role to UserA
-
Removed public function accessRules() from public function accessRules()
-
My requiremt is - normal user can view department while super admin can add/edit/delete department
This is not working as per my expectation. after removing accessRules() without login department/admin is being accessed.
How to do the required permission? Pls help
see the attached table and directory screenshots
5280
5281
5282