never set admin third party
This commit is contained in:
parent
0c1701314a
commit
a4f3ffa2d8
|
@ -196,7 +196,7 @@ def create_user_roles(profile):
|
||||||
description="This is a google group based role created by Lemur",
|
description="This is a google group based role created by Lemur",
|
||||||
third_party=True,
|
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)
|
role = role_service.set_third_party(role.id, third_party_status=True)
|
||||||
roles.append(role)
|
roles.append(role)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue