Handle JT "create" permissions during migration

This commit is contained in:
Akita Noek
2016-04-27 15:28:17 -04:00
parent a6f735b4b9
commit b670681f6c

View File

@@ -201,7 +201,7 @@ def migrate_inventory(apps, schema_editor):
return inventory.auditor_role return inventory.auditor_role
elif perm.permission_type == 'write': elif perm.permission_type == 'write':
return inventory.update_role 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. # These permission types are handled differntly in RBAC now, nothing to migrate.
return False return False
else: else: