rubyonrailsin

A Ruby and Rails talk

Thursday, March 18, 2010


[spree-user] Re: undoing default Spree permissions?

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

I see what you mean about 'other places' - I commented out the
UsersController permission in the spree gem, the before_filters in the
users_controller.rb in the gem, and re-updated spree in my app and I'm
still being redirected to the login page - any idea what's triggering
it?

-Ryan

On Mar 18, 11:47 am, Roman Smirnov <pom...@gmail.com> wrote:
> There is no problem to redefine permissions, try for example:
> 'Admin::BaseController':
>   permission1:
>     roles : [admin]
>     options :
>       except : [show, index]
>
> But showing of view other people's profiles disallowed also in another
> place ;-)
>
> On Mar 18, 4:15 am, Ryan Michael <keri...@gmail.com> wrote:
>
>
>
> > I'd like to have public user profiles for a site I'm working on, and I
> > don't see any way to undo the permissions setting in config/
> > spree_permissions.yml other than changing the file in the Spree gem.
>
> > Please tell me there's a better way, and if not - wouldn't it be
> > better to put this in the default_theme so it doesn't require
> > monkeying with libraries?
>
> > -Ryan

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree-user@googlegroups.com.
To unsubscribe from this group, send email to spree-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive