From ed57a5a45af148734b0fb037af5daf85c65e176f Mon Sep 17 00:00:00 2001 From: sayali Date: Thu, 28 Jan 2021 13:43:25 -0800 Subject: [PATCH] Keep default role third-party (old code) --- lemur/auth/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lemur/auth/views.py b/lemur/auth/views.py index 5bf80201..f9eb11d0 100644 --- a/lemur/auth/views.py +++ b/lemur/auth/views.py @@ -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