Skip to content

Commit

Permalink
Loosen authorization rule for recoverty token search
Browse files Browse the repository at this point in the history
The authorization to read recovery tokens (RT) for ones institution was set
to require the RAA role. However, reading and removing RT is a RA
action.

This commit lowers authz to RA for searching the RT

See: https://www.pivotaltracker.com/story/show/184938232
  • Loading branch information
MKodde committed Feb 20, 2024
1 parent 7b2d9ab commit e7bc00b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function collectionAction(Request $request)
$actorId = new IdentityId($actorId);
$query->authorizationContext = $this->authorizationService->buildInstitutionAuthorizationContext(
$actorId,
RegistrationAuthorityRole::raa()
RegistrationAuthorityRole::ra()
);
}
$paginator = $this->service->search($query);
Expand Down

0 comments on commit e7bc00b

Please sign in to comment.