On Sep 15, 3:37 pm, Hemant Bhargava <[email protected]>
wrote:
> Not working .. In this case .. authorize_admin starts works ..
> Listen my case is if user is admin then show him all pages like :abc and
> :def and :xyz and if user is a simple user then show him only :abc and
> if user is an tailor then show him two pages :abc and :def ..
> All pages can be accessed by admin only ..
Sounds like you might need to make your authorize filter a little
smarter. The plugin Robert pointed out may do all you need or might
provide suitable inspiration.
Fred
> Hope u people now got it right..
>
> Abhinav Saxena wrote:
> > before_filter :authorize_admin, :except => [:def, :xyz]
> > before_filter :authorize_tailer, :only => [:def, :xyz] # if you have a
> > method authorize_tailer
>
> > Thanks,
> > Abhinav
> > --
> > अभिनव
> >http://twitter.com/abhinav
>
> > On Tue, Sep 15, 2009 at 6:07 PM, Hemant Bhargava <
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---