mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix Hound CI violations
This commit is contained in:
parent
a0d539bc3b
commit
7e7dadac88
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.downcase.camelize)
|
||||
!!roles.find_by_name(role.to_s.downcase.camelize)
|
||||
end
|
||||
|
||||
def get_roles
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue