Skip to content

Commit 551867b

Browse files
committed
fix: reverting the access mapping creation changes
1 parent e8f5582 commit 551867b

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

Access/accessrequest_helper.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,6 @@ def _create_access(
517517
access=access,
518518
user_identity=user_identity,
519519
request_id=request_id,
520-
access_label=access_label,
521-
access_tag=access_tag,
522520
access_reason=access_reason,
523521
)
524522
except Exception:
@@ -531,12 +529,12 @@ def _create_access(
531529

532530
@transaction.atomic
533531
def _create_access_mapping(
534-
user_identity, access, request_id, access_tag, access_label, access_reason
532+
user_identity, access, request_id, access_reason
535533
):
536534
""" Create AccessV2 and UserAccessMapping in db """
537535
if not access:
538536
access = AccessV2.objects.create(
539-
access_tag=access_tag, access_label=access_label
537+
access_tag=access.access_tag, access_label=access.access_label
540538
)
541539

542540
user_identity.user_access_mapping.create(

Access/management/commands/create_users.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)