fix red flagging for admins

This commit is contained in:
Echo 2025-07-08 16:43:48 -04:00
parent c60937ad52
commit 9527cc8a9f
No known key found for this signature in database

View file

@ -51,7 +51,7 @@ class User < ApplicationRecord
previous_level = trust_level
if changed_by_user.present? && level.to_s == "red" && !(changed_by_user.superadmin? || changed_by_user.admin_level_admin?)
if changed_by_user.present? && level.to_s == "red" && !(changed_by_user.admin_level_superadmin?)
return false
end