Bugfix to pass user model tests
This commit is contained in:
parent
bbd9fd74d5
commit
1976276d4d
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
def role?(role)
|
||||
Rails.logger.debug("Checking role in user")
|
||||
return !!self.roles.find_by_name(role.to_s.camelize)
|
||||
return !!self.roles.find_by_name(role.to_s.downcase.camelize)
|
||||
end
|
||||
|
||||
def get_roles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue