app/models/ucb_rails/user.rb in ucb_rails-0.0.6 vs app/models/ucb_rails/user.rb in ucb_rails-0.0.7

- old
+ new

@@ -3,9 +3,18 @@ attr_accessible :uid, :first_name, :last_name, :inactive before_validation :set_first_last_name + # Overridden by application + def roles + [] + end + + def has_role?(role) + admin? || roles.include?(role) + end + def active? !inactive? end def admin!(_admin=true) \ No newline at end of file