mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:28:07 +08:00
This reverts commit 7aff9806eb3592767313299d7a0b8c413e328d20.
This commit is contained in:

committed by
GitHub

parent
67a7b28096
commit
40d65dddf8
@ -1,7 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module FlagGuardian
|
||||
def can_edit_flag?(flag)
|
||||
@user.admin? && !flag.system? && !flag.used?
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user