Keep default role third-party (old code)

This commit is contained in:
sayali 2021-01-28 13:43:25 -08:00
parent fe2fc0eadd
commit ed57a5a45a
1 changed files with 2 additions and 0 deletions

View File

@ -185,6 +185,8 @@ def create_user_roles(profile):
current_app.config["LEMUR_DEFAULT_ROLE"],
description="This is the default Lemur role.",
)
if not default.third_party:
role_service.set_third_party(default.id, third_party_status=True)
roles.append(default)
return roles