]> git.koha-community.org Git - koha.git/commit
Bug 30982: (QA follow-up) No userenv, no jobs
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 23 Sep 2022 09:37:46 +0000 (09:37 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Sep 2022 11:57:51 +0000 (08:57 -0300)
commitaac6a2f15569885b56ccc85a1b6405a547dbb912
tree5596859dfa390be077add72d26736335df43ca6b
parentddaa92821540cb2384d091cd417e81bf1575751c
Bug 30982: (QA follow-up) No userenv, no jobs

+    # Assume permission if context has no user
+    my $can_manage_background_jobs = 1;
=> This felt a bit unsafe.

Test plan:
Try interface for jobs. Call API with cookie. Call API with OAuth.
Run t/db_dependent/Koha/BackgroundJobs.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJobs.pm
t/db_dependent/Koha/BackgroundJobs.t