search for: has_right

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

Did you mean: has_right_
2006 Aug 10
2
Authentication: UserEngine or own creation?
...it can validate, so I don''t think that it fits my needs. I rather thought about creating my own system, that does not validate controller/action pairs, but "real" roles and permissions. Semantic code: class profiles_controller < ApplicationController def edit if user.has_right ''EDIT_PROFILES'' or user.belongs_to ''ADMINS'' # do edit stuff else render :partial => ''permission_error'' end end end What do you think about that? Do I miss something or is it really better to create my own authenticatio...