mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 02:17:37 -02:30
move logic for project udpate to access.py
This commit is contained in:
@@ -709,8 +709,9 @@ class ProjectAccess(BaseAccess):
|
||||
def can_delete(self, obj):
|
||||
return self.can_change(obj, None)
|
||||
|
||||
@check_superuser
|
||||
def can_start(self, obj):
|
||||
return self.can_change(obj, {}) and obj.can_update
|
||||
return obj and self.user in obj.update_role
|
||||
|
||||
class ProjectUpdateAccess(BaseAccess):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user