mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 15:14:45 -03:30
Merge pull request #3460 from vismay-golwala/project_admin_issue
Project admin manual SCM Type creation bug fix Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -221,7 +221,8 @@ class ApiV1ConfigView(APIView):
|
||||
if request.user.is_superuser \
|
||||
or request.user.is_system_auditor \
|
||||
or Organization.accessible_objects(request.user, 'admin_role').exists() \
|
||||
or Organization.accessible_objects(request.user, 'auditor_role').exists():
|
||||
or Organization.accessible_objects(request.user, 'auditor_role').exists() \
|
||||
or Organization.accessible_objects(request.user, 'project_admin_role').exists():
|
||||
data.update(dict(
|
||||
project_base_dir = settings.PROJECTS_ROOT,
|
||||
project_local_paths = Project.get_local_path_choices(),
|
||||
|
||||
Reference in New Issue
Block a user