@@ -, +, @@
- Go to any patron account and check More > permissions
- Veriy the description is shown as noted above
- Apply patch and run database update
- Reload the page and verify the description has changed
- Run the following SQL and verify the description in the
database table matches as well:
---
.../atomicupdate/bug_23109_improve_staffaccess_description.perl | 6 ++++++
installer/data/mysql/userflags.sql | 2 +-
koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
create mode 100644 installer/data/mysql/atomicupdate/bug_23109_improve_staffaccess_description.perl
--- a/installer/data/mysql/atomicupdate/bug_23109_improve_staffaccess_description.perl
+++ a/installer/data/mysql/atomicupdate/bug_23109_improve_staffaccess_description.perl
@@ -0,0 +1,6 @@
+$DBversion = 'XXX'; # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do( "UPDATE userflags SET flagdesc = 'Allow staff members to modify permissions and passwords for other staff members' WHERE flag = 'staffaccess'" );
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 23109 - Improve description of staffacess permissiony)\n";
+}
--- a/installer/data/mysql/userflags.sql
+++ a/installer/data/mysql/userflags.sql
@@ -13,7 +13,7 @@ INSERT INTO userflags (bit, flag, flagdesc, defaulton) VALUES
(14,'editauthorities','Edit authorities',0),
(15,'serials','Manage serial subscriptions',0),
(16,'reports','Allow access to the reports module',0),
-(17,'staffaccess','Allow staff members to modify permissions for other staff members',0),
+(17,'staffaccess','Allow staff members to modify permissions and passwords for other staff members',0),
(18,'coursereserves','Course reserves',0),
(19, 'plugins', 'Koha plugins', '0'),
(20, 'lists', 'Lists', 0),
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
@@ -43,7 +43,7 @@
Allow access to the reports module
([% name | html %])
[%- CASE 'staffaccess' -%]
- Allow staff members to modify permissions for other staff members
+ Allow staff members to modify permissions and passwords for other staff members
([% name | html %])
[%- CASE 'coursereserves' -%]
Course reserves
--