omit project can_cancel check from access logic

This commit is contained in:
AlanCoding
2017-01-09 09:09:11 -05:00
parent 8847110c23
commit 638cb98631

View File

@@ -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