mirror of
https://github.com/ansible/awx.git
synced 2026-06-27 09:28:01 -02:30
Deprecated Team.projects and Project.teams relations, switching to using RBAC
This commit is contained in:
@@ -103,10 +103,10 @@ class Team(CommonModelNameNotUnique, ResourceMixin):
|
||||
on_delete=models.SET_NULL,
|
||||
related_name='teams',
|
||||
)
|
||||
projects = models.ManyToManyField(
|
||||
deprecated_projects = models.ManyToManyField(
|
||||
'Project',
|
||||
blank=True,
|
||||
related_name='teams',
|
||||
related_name='deprecated_teams',
|
||||
)
|
||||
admin_role = ImplicitRoleField(
|
||||
role_name='Team Administrator',
|
||||
|
||||
@@ -225,7 +225,6 @@ class Project(UnifiedJobTemplate, ProjectOptions, ResourceMixin):
|
||||
role_description='May manage this project',
|
||||
parent_role=[
|
||||
'organization.admin_role',
|
||||
'teams.member_role',
|
||||
'singleton:' + ROLE_SINGLETON_SYSTEM_ADMINISTRATOR,
|
||||
],
|
||||
permissions = {'all': True}
|
||||
|
||||
Reference in New Issue
Block a user