Skip to content

Commit

Permalink
added system? method to CommunityUser model
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Dec 16, 2024
1 parent 94df355 commit 3122f7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/community_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class CommunityUser < ApplicationRecord

after_create :prevent_ulysses_case

def system?
user_id == -1
end

def suspended?
return true if is_suspended && !suspension_end.past?

Expand Down

0 comments on commit 3122f7b

Please sign in to comment.