Changing the permissions

1 view
Skip to first unread message

Pavan Mishra

unread,
Feb 24, 2009, 9:49:53 AM2/24/09
to Rails Authorization Plugin
Its easy to set permissions using this plugin. However changing of
roles is common scenarion in authorization. Its not obvious or
straight forward using the DSL as to how to do it.
Did i miss something?

Tim

unread,
Apr 7, 2009, 5:03:22 PM4/7/09
to Rails Authorization Plugin
Hey Pavan,

I've been changing a user's role by using:

user.has_no_role(old_role_name)

to remove the old role and then setting the new role using

user.has_role(new_role_name)

Is that not sufficient for your scenario?

HTH,
Tim
Reply all
Reply to author
Forward
0 new messages