]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
views: patch-list: show the 'Properties' update box for all users
authorBrian Norris <computersforpeace@gmail.com>
Sun, 23 Nov 2014 06:30:06 +0000 (22:30 -0800)
committerStephen Finucane <stephen.finucane@intel.com>
Wed, 4 Nov 2015 19:42:59 +0000 (19:42 +0000)
Any authenticated user should be able to change the properties of their
own patches from the list view. They can already do so from the patch
view and from pwclient.

Now, authenticated users can perform 'Change state', 'Delegate to', and
'Archive' operations on multiple patches at a time (e.g., after
'select-all' on a bundle, or after selecting a few patches
individually). We'll print an error message to the page for any patches
which can't be updated (e.g., due to ownership).

This fixes a usability issue that has been reported a few times.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/views/__init__.py

index 8df8920ce991f104a0e783b69c46ba861272770a..ffae91a15132a0993cf4d5f20a31998b4b2c9bb8 100644 (file)
@@ -56,7 +56,7 @@ def generic_list(request, project, view,
         data = None
     user = request.user
     properties_form = None
-    if project.is_editable(user):
+    if user.is_authenticated():
 
         # we only pass the post data to the MultiplePatchForm if that was
         # the actual form submitted