> However, I can't seem to discover why the user is denied access.

Within the user model there is a method called has_role? which compares 
all names in the admin table versus "admin".  If it matches then the 
user is granted admin access.  I modified has_role? by passing the 
user's id in as well (lib/role_requirement_system.rb line 100).  It now 
compares the user's id vs the ids in the admin table.  A match grants 
admin access.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to