From b670681f6c13a27184504d99452f21c2896a7e62 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Wed, 27 Apr 2016 15:28:17 -0400 Subject: [PATCH] Handle JT "create" permissions during migration --- awx/main/migrations/_rbac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/migrations/_rbac.py b/awx/main/migrations/_rbac.py index 8710f8c772..3570e0184a 100644 --- a/awx/main/migrations/_rbac.py +++ b/awx/main/migrations/_rbac.py @@ -201,7 +201,7 @@ def migrate_inventory(apps, schema_editor): return inventory.auditor_role elif perm.permission_type == 'write': return inventory.update_role - elif perm.permission_type == 'check' or perm.permission_type == 'run': + elif perm.permission_type == 'check' or perm.permission_type == 'run' or perm.permission_type == 'create': # These permission types are handled differntly in RBAC now, nothing to migrate. return False else: