Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchKit - Fix viewing search display for anonymous user #24180

Merged
merged 2 commits into from Aug 9, 2022

Conversation

totten
Copy link
Member

@totten totten commented Aug 8, 2022

Overview

Port @colemanw's #24160 from 5.52-stable to 5.53-master

Tested on both 5.52 and 5.53 while reviewing #24160, so MOP.

colemanw and others added 2 commits August 8, 2022 14:21
This regressed in aa5d068 when the single SearchDisplay::run api call
was replacd with an array of calls. The hack in alterApiRoutePermissions can't handle multiple calls.
This updates it so that it can handle an array of calls - it will call the hook for each one and
reject the request if any of them lack permission.
@civibot
Copy link

civibot bot commented Aug 8, 2022

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants