Skip to content

Commit

Permalink
OM-188
Browse files Browse the repository at this point in the history
  • Loading branch information
malinowskikam committed Aug 23, 2024
1 parent 9ba04eb commit fa453df
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
logger = logging.getLogger(__name__)


class SamlUserService:
class MpassUserService:
location = None

def __init__(self):
Expand Down Expand Up @@ -85,13 +85,13 @@ def _update_user_legal_entities(self, user: User, user_data: dict) -> None:
self._add_new_user_policyholders(user, policyholders)

def _update_user_roles(self, user, user_data):
msystem_roles_list = user_data.get(MsystemsConfig.mpass_key_legal_entities, [MsystemsConfig.EMPLOYER])
mpass_roles_list = user_data.get(MsystemsConfig.mpass_key_roles, [MsystemsConfig.EMPLOYER])

for role in msystem_roles_list:
for role in mpass_roles_list:
self._validate_incoming_roles(role)

self._delete_old_user_roles(user, msystem_roles_list)
self._add_new_user_roles(user, msystem_roles_list)
self._delete_old_user_roles(user, mpass_roles_list)
self._add_new_user_roles(user, mpass_roles_list)

def _update_user_name(self, i_user, first_name, last_name):
i_user.save_history()
Expand Down

0 comments on commit fa453df

Please sign in to comment.