Turning off Access Checks?

8 views
Skip to first unread message

Lev

unread,
Jul 8, 2011, 2:34:40 PM7/8/11
to phundament-dev
I am attempting to use phundament with yii-user-management. And
already do access checking for pages where i want to use phundament.
Would it make sense to turn off access checks? If yes, what would be
the best approach? If not, how can i approach the integration of this
and yii-user-management.

For background yii-user-managment already keeps track of users. Has
it's own user tables, and the like.

schmunk

unread,
Jul 13, 2011, 11:53:24 AM7/13/11
to phundam...@googlegroups.com
I think it's not a good idea to turn off access checks.
It would be better to modify them according to your needs.

Phundament should work with any Yii User or Rights Management module, it just uses the framework API.

Lev

unread,
Jul 13, 2011, 12:02:13 PM7/13/11
to phundament-dev
Many thanks. Can you provide an example of how one would go about this
modification. That would help visualize this.

schmunk

unread,
Jul 13, 2011, 12:17:03 PM7/13/11
to phundam...@googlegroups.com
Check this section from the Yii Defnitive Guide for access control and filters:
http://www.yiiframework.com/doc/guide/1.1/en/topics.auth#access-control-filter

You can define roles, tasks, operations, etc ... The phundament controllers have similar accessControl methods()

Lev

unread,
Jul 13, 2011, 12:21:10 PM7/13/11
to phundament-dev
So i would do something like $auth->assign('reader','readerA'); and
assign the roles that phundament expects?

Many thanks

On Jul 13, 12:17 pm, schmunk <schm...@usrbin.de> wrote:
> Check this section from the Yii Defnitive Guide for access control and filters:http://www.yiiframework.com/doc/guide/1.1/en/topics.auth#access-contr...

schmunk

unread,
Jul 13, 2011, 12:37:34 PM7/13/11
to phundam...@googlegroups.com
Yeah, but can already do this with the srbac interface.
Reply all
Reply to author
Forward
0 new messages