search for: curent_user

Displaying 1 result from an estimated 1 matches for "curent_user".

Did you mean: current_user
2008 Dec 08
0
Complex polymorphic routes
...y want to narrow down data for. Once a user lists their domains, I don''t care if it is used via the /domains/ prefix directly. However, this means that permission checking will have to occur, where by scoping it I manage to avoid having to do a lot of this, as all I need to do is check if curent_user.id == params[:user_id] or if current_user is an admin. The additional scoping for direct operations on a specific item seem to be most of the problem, as it is mostly unnecessary. Do others have solutions to this sort of problem that are cleaner than what I have done, or might end up doing? Than...