fix: some bug from security

This commit is contained in:
2021-06-22 15:54:42 +08:00
parent 526920f564
commit 4126ea7b4e
5 changed files with 17 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ module ProjectOperable
end
def operator?(user)
user.admin? || !reporter?(user)
user.admin? || (member?(user.id) && !reporter?(user))
end
def set_developer_role(member, role_name)