rbac/srbac guest permissions

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).

In srbac there’s a an attribute alwaysAllowed where you can set the pages that every user (even guests) can visit

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.yiiframework.com/forum/index.php?/topic/2994-extension-srbac-web-interface-for-the-administration-of-rbac/

Thanks