Skip to content

Commit

Permalink
Refactoring updated DefaultAuthorizationService, to show correct perm…
Browse files Browse the repository at this point in the history
…ission for group of stopPlaces
  • Loading branch information
assadriaz committed Nov 5, 2024
1 parent ddab310 commit 7dcd562
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.rutebanken.tiamat.model.StopPlace;
import org.rutebanken.tiamat.model.StopTypeEnumeration;
import org.rutebanken.tiamat.model.ValidBetween;
import org.rutebanken.tiamat.service.groupofstopplaces.GroupOfStopPlacesMembersResolver;
import org.rutebanken.tiamat.service.stopplace.MultiModalStopPlaceEditor;
import org.rutebanken.tiamat.versioning.VersionCreator;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down Expand Up @@ -86,6 +87,9 @@ public class StopPlaceAuthorizationServiceTest extends TiamatIntegrationTest {
@Autowired
private TiamatEntityResolver tiamatEntityResolver;

@Autowired
private GroupOfStopPlacesMembersResolver groupOfStopPlacesMembersResolver;


@Autowired
private TiamatOriganisationChecker tiamatOriganisationChecker;
Expand Down Expand Up @@ -122,7 +126,7 @@ public void StopPlaceAuthorizationServiceTest() {
tiamatOriganisationChecker,
topographicPlaceChecker,
tiamatEntityResolver);
this.authorizationService = authorizationServiceConfig.authorizationService(dataScopedAuthorizationService, roleAssignmentExtractor,topographicPlaceChecker);
this.authorizationService = authorizationServiceConfig.authorizationService(dataScopedAuthorizationService, roleAssignmentExtractor,topographicPlaceChecker,groupOfStopPlacesMembersResolver);



Expand Down

0 comments on commit 7dcd562

Please sign in to comment.