mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
fix red flagging for admins
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user