Ruby on Rails
Tuesday, June 14, 2016
Hi Greg,
I was trying to prevent non reviewers from seeing the full list of users by raising an unathorised error within the Devise users template.
I've modified the display so they can only see their own account, and I realise I could do this by customising the controller, but I wanted something quick and easy.
Cheers
Michael
On Monday, 13 June 2016 18:42:59 UTC+1, Greg Navis wrote:
-- I was trying to prevent non reviewers from seeing the full list of users by raising an unathorised error within the Devise users template.
I've modified the display so they can only see their own account, and I realise I could do this by customising the controller, but I wanted something quick and easy.
Cheers
Michael
On Monday, 13 June 2016 18:42:59 UTC+1, Greg Navis wrote:
I'm not sure whether this is possible at all. Even if it is, it'll violate the principle of least surprise. Could you tell a bit more about what you want to achieve so we might be able to suggest an alternative design?--Greg NavisI help tech companies to scale Heroku-hosted Rails apps.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/16709df9-020c-4f92-b40b-fb49945ee4de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment