tingobol / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bug in Rights::findModule() #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey, I have found that in my case Rights::findModule() method produces wrong 
output, it returns Gii module instead of Rights one.

My config was:

'modules'=>array(
    'gii'=>array(...),
    'admin'=>array(...),
),

Rights module is nested in Admin module, Rights::findModule() in that case 
returns Gii :/
To fix that I has to change modules array to:

'modules'=>array(
    'admin'=>array(...),
    'gii'=>array(...),
),

and now everything is working, I think You should consider deep look into 
findModule method ;)

Cheers,
canni

Original issue reported on code.google.com by darek....@gmail.com on 5 Mar 2011 at 3:50

GoogleCodeExporter commented 9 years ago
Thanks for reporting this bug. I will have to take a look at that method.

Original comment by Christof...@gmail.com on 12 Mar 2011 at 12:04

GoogleCodeExporter commented 9 years ago
Hello darek,

I fixed the method and now it should work as expected. This fix will be 
included in version 1.3.0.

Original comment by Christof...@gmail.com on 31 Mar 2011 at 9:12