mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Merge pull request #4615 from AlanCoding/cancel_403
Remove can_cancel check (unrelated to permissions) from access method
This commit is contained in:
commit
6e0752c6de
@ -985,8 +985,6 @@ class ProjectUpdateAccess(BaseAccess):
|
||||
|
||||
@check_superuser
|
||||
def can_cancel(self, obj):
|
||||
if not obj.can_cancel:
|
||||
return False
|
||||
if self.user == obj.created_by:
|
||||
return True
|
||||
# Project updates cascade delete with project, admin role descends from org admin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user