mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
added False return for permission check
This commit is contained in:
parent
568de86423
commit
db7cfb23f8
@ -203,6 +203,8 @@ class ProjectUpdatePermission(ModelAccessPermission):
|
||||
if project and request.user in project.read_role:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def check_post_permission(self, request, view, obj=None):
|
||||
if request.user.is_superuser:
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user