mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
FEATURE: the ability to change the order of flags (#27269)
Continued work on moderate flags UI. In this PR admins are allowed to change the order of flags. The notify user flag is always on top but all other flags can be moved.
This commit is contained in:

committed by
GitHub

parent
c1ecbb8d28
commit
aa88b07640
@ -8,4 +8,8 @@ module FlagGuardian
|
||||
def can_toggle_flag?
|
||||
@user.admin?
|
||||
end
|
||||
|
||||
def can_reorder_flag?(flag)
|
||||
@user.admin? && flag.name_key != "notify_user"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user