mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
hotfix
This commit is contained in:
@@ -147,7 +147,7 @@ class User < ApplicationRecord
|
||||
return false if pending_deletion?
|
||||
return true unless red?
|
||||
|
||||
last_audit = trust_level_audit_logs.where(new_level: :red).order(created_at: :desc).first
|
||||
last_audit = trust_level_audit_logs.where(new_trust_level: :red).order(created_at: :desc).first
|
||||
return true unless last_audit
|
||||
|
||||
last_audit.created_at <= 365.days.ago
|
||||
|
||||
Reference in New Issue
Block a user