]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: change edit permissions for comments
authorRaxel Gutierrez <raxel@google.com>
Fri, 20 Aug 2021 04:50:26 +0000 (04:50 +0000)
committerDaniel Axtens <dja@axtens.net>
Mon, 23 Aug 2021 08:54:20 +0000 (18:54 +1000)
commit9c8906150a782cd2a9996f6f60d129a7323b8043
tree3f22dc162450701521a2d1b7acd854a6c948847f
parenteade9c57e2c1a3d864fc0e7d9243d1d663237c32
models: change edit permissions for comments

Change patch comments' edit permissions to match that of the patch
associated with the comment (i.e. patch author, project maintainers, and
delegate) and add permissions for both patch and cover comment authors
to be able to change the `addressed` status of comments as well. For
cover comments, add permissions to edit for cover submitter and project
maintainers.

Signed-off-by: Raxel Gutierrez <raxel@google.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/models.py