mirror of
https://github.com/ansible/awx.git
synced 2026-08-02 19:10:00 -02:30
Cleaned up some more stale TODO's and FIXME's (or did / fixed the things)
This commit is contained in:
@@ -880,7 +880,6 @@ class JobTemplateAccess(BaseAccess):
|
||||
|
||||
team_ids = Team.objects.filter(deprecated_users__in=[self.user])
|
||||
|
||||
# TODO: I think the below queries can be combined
|
||||
deploy_permissions_ids = Permission.objects.filter(
|
||||
Q(user=self.user) | Q(team_id__in=team_ids),
|
||||
permission_type__in=allowed_deploy,
|
||||
@@ -1094,7 +1093,6 @@ class JobAccess(BaseAccess):
|
||||
allowed_check = [PERM_JOBTEMPLATE_CREATE, PERM_INVENTORY_DEPLOY, PERM_INVENTORY_CHECK]
|
||||
team_ids = Team.objects.filter(deprecated_users__in=[self.user])
|
||||
|
||||
# TODO: I think the below queries can be combined
|
||||
deploy_permissions_ids = Permission.objects.filter(
|
||||
Q(user=self.user) | Q(team__in=team_ids),
|
||||
permission_type__in=allowed_deploy,
|
||||
|
||||
Reference in New Issue
Block a user