Skip to content

Commit

Permalink
chore: fix transfer endpoint permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
BCerki committed Nov 13, 2024
1 parent 293dd60 commit 44b72de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion bc_obps/registration/api/v1/transfer_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
tags=TRANSFER_EVENT_TAGS,
description="""Retrieves a paginated list of transfer events based on the provided filters.
The endpoint allows authorized users to view and sort transfer events filtered by various criteria such as operation, facility, and status.""",
auth=authorize("approved_authorized_roles"),
auth=authorize("authorized_irc_user"),
)
@handle_http_errors()
@paginate(CustomPagination)
Expand Down
3 changes: 0 additions & 3 deletions bc_obps/registration/tests/models/event/test_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,19 @@ def setUpTestData(cls):
("facilities", "facilities", None, None),
("other_operator", "other operator", None, None),
("other_operator_contact", "other operator contact", None, None),
("future_designated_operator", "future designated operator", None, None),
]
super().setUpTestData()

def test_event_with_operation_only(self):
self.create_event_with_operation_only(
description="Why the transfer is happening",
future_designated_operator="My Operator",
other_operator=operator_baker(),
other_operator_contact=contact_baker(),
)

def test_event_with_facilities_only(self):
self.create_event_with_facilities_only(
description="Why the transfer is happening returns",
future_designated_operator="My Operator",
other_operator=operator_baker(),
other_operator_contact=contact_baker(),
)
Expand Down

0 comments on commit 44b72de

Please sign in to comment.