Import search authorization issues
I've hit an issue where the api validation fails to the point of crashing the SearchKit main screen when UserJob
records exist that the user does not have access to
To replicate log in as admin, enable Civi-Import & run an import (preferably testing one of my open import PRs in process :-). Then log out, and log in as demo user & try to load the SearchKit page
The issue is some of the imports are unavailable & the chained call here throws an Authorization error that is not caught.
@colemanw am looking for help on this & also ideally on tweaking this permission check
to require EITHER a current user match OR is_template = 1
The alternative would be to blank created_id
for templates - but it still feels like useful info. The template gitlab is #4130 (closed)
UPDATE
dang -hitting the same on explorer