Skip to content

Commit 33ce208

Browse files
committed
patchwork/api/check.py: for now, grant maintainer check rights
Removing this grant will be disruptive, so, for now, keep it enabled for maintainers. A better approach would be to handle it at migration time. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 4af7e72 commit 33ce208

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

patchwork/api/check.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ def is_editable(self, user, patch):
123123
patch._edited_by = user
124124
return True
125125

126-
# Being maintainer doesn't grant rights to create checks.
126+
# user is project maintainer also grants checs right.
127+
# TODO: being a maintainer should be orthogonal of
128+
# being a CI that update checks
129+
if self.cover.project.is_editable(user):
130+
return True
131+
127132
return False
128133

129134
def create(self, request, patch_id, *args, **kwargs):

0 commit comments

Comments
 (0)