Displaying 1 result from an estimated 1 matches for "permission_error".
2006 Aug 10
2
Authentication: UserEngine or own creation?
...rs, 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 authentication system rather than using the UserEngine?
Or are there other authentication systems available for Rails apps?
Thanks a lot for your opinions. :-)
Joshua
--
Poste...