Closed mtangoo closed 9 years ago
I think not. "Restricting access" should be set via RBAC it self.
I mean restricting access to RBAC Module itself. for example, I can now access arbitrarily url localhost/admin Not sure if you get my point
admin/role
and admin/permission
.admin/route
.thanks!
I have added pull request to clarify what I mean
updated PR
I have got a problem. I want to apply access ONLY to admin module not whole of site controllers. How do I do that?
attach filter to module
'modules'=>[
'admin'=>[
'class'=>'mdm\admin\Module',
'as access'=>[
'class'=>'mdm\admin\components\AccessControl'
],
]
]
That was it!
Assign route to role or permission.
how can i assign?
assign what?
How do I suppose to restrict that? I know I can try the Application beforeAction but its a long route. I believe module should have a way of restricting users. I suggest to add property that limits by IDs or role something like
what do you think?