Skip to content

Commit

Permalink
better user syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
orangewolf committed Aug 10, 2023
1 parent e8fe6b4 commit 4d36f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def to_s
end

def is_admin
has_role? :admin || has_role? :admin, Site.instance
has_role?(:admin) || has_role?(:admin, Site.instance)
end

def is_superadmin
Expand Down

0 comments on commit 4d36f44

Please sign in to comment.