mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Feature: PDF actions - merge, split & rotate (#6094)
This commit is contained in:
parent
d6d0071175
commit
4af8070450
31 changed files with 1847 additions and 150 deletions
|
|
@ -891,7 +891,8 @@ class BulkEditView(GenericAPIView, PassUserMixin):
|
|||
document_objs = Document.objects.filter(pk__in=documents)
|
||||
has_perms = (
|
||||
all((doc.owner == user or doc.owner is None) for doc in document_objs)
|
||||
if method == bulk_edit.set_permissions
|
||||
if method
|
||||
in [bulk_edit.set_permissions, bulk_edit.delete, bulk_edit.rotate]
|
||||
else all(
|
||||
has_perms_owner_aware(user, "change_document", doc)
|
||||
for doc in document_objs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue