php - Yii 1.1.14 access control specify actions -
I leave one controller ,
So if I apply the code [-], then is it okay?
Public Function Filters () {Return Array ('accesscontrol - actionId1, actionId2',); }
Or there is some error in the code, and do I do it any other way?
This will work but you
array ('allow', 'Actions' = & gt; array (' actionId1 ',' actionId2 '),' user = & gt; array ('*'),)
in acessRules ( ) for which you do not want a rule
> Note: - 'users' = & gt; The array ('*')
provides access to all of these tasks
Comments
Post a Comment