Minor refactor

master
E. Almqvist 3 years ago
parent e85346da25
commit 46501c3681
  1. 2
      src/db_models.rb

@ -18,7 +18,7 @@ class User < EntityModel
end
def role
return Role.find_by_id(1).name if self.admin?
return Role.find_by_id( ROLES[:admin][:id] ).name if self.admin?
user_roles = self.roles
if user_roles.length > 0 then

Loading…
Cancel
Save