From 444d01c0a5651973388e52ab5c0f76ed65f73a33 Mon Sep 17 00:00:00 2001 From: Ryan Higgins Date: Sat, 1 Dec 2007 20:50:02 -0600 Subject: [PATCH] adding userflag to allow modification of staff borrowers. will add Staff category type in subsequent commit Signed-off-by: Joshua Ferraro --- installer/data/mysql/en/mandatory/userflags.sql | 1 + installer/data/mysql/updatedatabase.pl | 7 +++++++ kohaversion.pl | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/installer/data/mysql/en/mandatory/userflags.sql b/installer/data/mysql/en/mandatory/userflags.sql index e24eed2525..20b5d9a0ff 100644 --- a/installer/data/mysql/en/mandatory/userflags.sql +++ b/installer/data/mysql/en/mandatory/userflags.sql @@ -14,3 +14,4 @@ INSERT INTO `userflags` VALUES(13,'tools','Use tools (export, import, barcodes)' INSERT INTO `userflags` VALUES(14,'editauthorities','allow to edit authorities',0); INSERT INTO `userflags` VALUES(15,'serials','allow to manage serials subscriptions',0); INSERT INTO `userflags` VALUES(16,'reports','allow to access to the reports module',0); +INSERT INTO `userflags` VALUES(17,'staffaccess','Modify login / permissions for staff users',0); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 02dd1ae5ee..e8a9a13a56 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -751,6 +751,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = "3.00.00.033"; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `userflags` VALUES(17,'staffaccess','Modify login / permissions for staff users',0)"); + print "Upgrade to $DBversion done (Adding permissions flag for staff member access modification. )\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) diff --git a/kohaversion.pl b/kohaversion.pl index 675f0958f4..82530277fc 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -8,7 +8,7 @@ # and is automatically called by Auth.pm when needed. sub kohaversion { - return "3.00.00.032"; + return "3.00.00.033"; } 1; -- 2.39.5