Hey, how do you give roles or tasks to guest users? I'm going about this via the SRBAC exension, and I've got it working for users stored in my database, but guests can't view basic items. How do you go about specifying what models they can view/not view (obviously they're not creating or managing anything).
Page 1 of 1
rbac/srbac guest permissions
#2
Posted 31 October 2009 - 03:16 AM
In srbac there's a an attribute alwaysAllowed where you can set the pages that every user (even guests) can visit
e.g.
If you have any other questions about srbac post them in srbac thread
http://www.yiiframew...ration-of-rbac/
Thanks
e.g.
<?php
'srbac'=>array(
'alwaysAllowed'=>array(
'SiteLogin','SiteLogout','SiteIndex','SiteAdmin','SiteError',
'SiteContact')
),
?>
If you have any other questions about srbac post them in srbac thread
http://www.yiiframew...ration-of-rbac/
Thanks
Share this topic:
Page 1 of 1

Help













