File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -582,17 +582,17 @@ def sync_sso_roles(self):
582582
583583 print (f"New roles to be created: { roles_to_create } " )
584584
585- public_role = sm .find_role ("Public " )
586- if not public_role :
587- print ("Could not find 'Public ' role. Cannot use it as a template." )
585+ gamma_role = sm .find_role ("Gamma " )
586+ if not gamma_role :
587+ print ("Could not find 'Gamma ' role. Cannot use it as a template." )
588588 return
589589
590- public_permissions = public_role .permissions
590+ gamma_permissions = gamma_role .permissions
591591
592592 try :
593593 for role_name in roles_to_create :
594594 logger .info (f"Creating role: '{ role_name } '" )
595- sm .add_role (name = role_name , permissions = public_permissions )
595+ sm .add_role (name = role_name , permissions = gamma_permissions )
596596 db .session .commit () # We need to explicitly commit the session
597597 logger .info ("Successfully committed new roles to the database." )
598598 except Exception as e :
You can’t perform that action at this time.
0 commit comments