mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
fix red flagging for admins
This commit is contained in:
parent
c60937ad52
commit
9527cc8a9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue