From 0d5c2f813ee1910e37df54a7f3792f4555d7d0cc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 17 May 2016 14:38:04 +0100 Subject: [PATCH] Bug 16508: Updating a syspref requires parameters_remaining_permissions Content-Type: text/plain; charset=utf-8 And not all of parameters flags. Test plan: 1/ Create a staff user. 2/ Go to details, select more->set permissions. 3/ Set catalogue, Manage Koha system settings (Administration panel), manage circulation rules, and Remaining system parameters permissions. 4/ Log in as the new staff user, go to administration > system preferences. Change a syspref and save it... it will save correctly. 5/ Log back in as superlibrarian 6/ On the 'set permissions' screen, un-check 'manage circulation rules' and save. 7/ Log back in to the new staff user, and try to change the same systemprefrence and save. Followed test plan, works as expected. Signed-off-by: Marc Veron Signed-off-by: Marcel de Rooy --- svc/config/systempreferences | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/config/systempreferences b/svc/config/systempreferences index 01cd782..89c5339 100755 --- a/svc/config/systempreferences +++ b/svc/config/systempreferences @@ -42,7 +42,7 @@ batches. =cut -our ( $query, $response ) = C4::Service->init( parameters => 1 ); +our ( $query, $response ) = C4::Service->init( parameters => 'parameters_remaining_permissions' ); =head2 set_preference -- 1.7.10.4