never set admin third party

This commit is contained in:
sayali 2021-02-10 12:12:52 -08:00
parent 0c1701314a
commit a4f3ffa2d8

View File

@ -196,7 +196,7 @@ def create_user_roles(profile):
description="This is a google group based role created by Lemur",
third_party=True,
)
if not role.third_party:
if (group != 'admin') and (not role.third_party):
role = role_service.set_third_party(role.id, third_party_status=True)
roles.append(role)
else: