Yii Framework Forum: rbac/srbac guest permissions - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

rbac/srbac guest permissions Rate Topic: -----

#1 User is offline   Jaz Manister 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 109
  • Joined: 27-October 09
  • Location:Rural Western New York, USA

Posted 30 October 2009 - 01:36 PM

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

#2 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

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.
<?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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users