Hi,
I have a problem if it's still a problem.
When I configure my url parameters to by lower case and srbac inserts actions in case sensitive way, for example, itemRegisterAdmin
So if I check that my url must by lower case, than Yii::base function checkAccess has lower cased action itemregisteradmin and selects from database srbac saved action itemRegisterAdmin, than it compares and the rezult is 'itemregisteradmin' === 'itemRegisterAdmin' and checkAccess function returns false.
So in this way I suggest to rewrite checkAcces function in secont Yii realize and for solving this problem, it can be rewriten in srbac module.
Page 1 of 1
srbac checkAccess checking access in case sensitive path
#2
Posted 28 April 2010 - 10:56 PM
Which are the steps to duplicate this issue?
Could you put a echo $access; on line 40 of SBaseController and see the name of the action to checkAccess?
Is it lowercase?
Could you put a echo $access; on line 40 of SBaseController and see the name of the action to checkAccess?
Is it lowercase?
#3
Posted 04 May 2010 - 03:03 AM
Yes, it's lower cased but action value taken from srbac one of tables is case sensitive 'itemsControllerAdmin'.
So, the aplication returns lower case string and checks with srbac table values wich are case sensitive.
So, the aplication returns lower case string and checks with srbac table values wich are case sensitive.
#4
Posted 04 May 2010 - 03:08 AM
As I see, You fixed this one in new srbac realize :
"If checking db fails , check for lower-upper case issues and display a message"
I'll check this one realize.
"If checking db fails , check for lower-upper case issues and display a message"
I'll check this one realize.
#6
Posted 05 May 2010 - 01:31 AM
I can't duplicate this.
Could you provide the name of the controller and the name of the action function?
Could you provide the name of the controller and the name of the action function?
Share this topic:
Page 1 of 1

Help













