From 0dcdcf73ab61dbd39b6c1cd54ad5e20ae5ee31e0 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Tue, 17 May 2016 14:38:04 +0100
Subject: [PATCH] Bug 16508: Updating a syspref requires
 parameters_remaining_permissions
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 VĂ©ron <veron@veron.ch>
---
 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