From: Galen Charlton Date: Thu, 10 Apr 2008 16:37:49 +0000 (-0500) Subject: renamed CheckSpecificUserPermissions to GranularPermissions X-Git-Tag: v3.00.00-stableRC1~659 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=83f8e22aec1a43e705ed6fae9b01d4b0a48c03f2;p=koha.git renamed CheckSpecificUserPermissions to GranularPermissions Signed-off-by: Joshua Ferraro --- diff --git a/C4/Auth.pm b/C4/Auth.pm index 5c69ab3fd8..8ad1470623 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -191,7 +191,7 @@ sub get_template_and_user { } } - if (C4::Context->preference('CheckSpecificUserPermissions')) { + if (C4::Context->preference('GranularPermissions')) { if ( $flags ) { foreach my $module (keys %$all_perms) { if ( $flags->{$module} == 1) { @@ -357,7 +357,7 @@ that the user must have the "circulate" privilege in order to proceed. To make sure that access control is correct, the C<$flagsrequired> parameter must be specified correctly. -If the CheckSpecificUserPermissions system preference is ON, the +If the GranularPermissions system preference is ON, the value of each key in the C hash takes on an additional meaning, e.g., @@ -1335,7 +1335,7 @@ sub haspermission { } return $flags if $flags->{superlibrarian}; foreach my $module ( keys %$flagsrequired ) { - if (C4::Context->preference('CheckSpecificUserPermissions')) { + if (C4::Context->preference('GranularPermissions')) { my $subperm = $flagsrequired->{$module}; if ($subperm eq '*') { return 0 unless ( $flags->{$module} == 1 or ref($flags->{$module}) ); diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 84d134b2ca..58a2cb27bc 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -82,7 +82,7 @@ my %tabsysprefs; $tabsysprefs{SessionStorage}="Admin"; $tabsysprefs{noItemTypeImages}="Admin"; $tabsysprefs{OPACBaseURL}="Admin"; - $tabsysprefs{CheckSpecificUserPermissions}="Admin"; + $tabsysprefs{GranularPermissions}="Admin"; # Authorities $tabsysprefs{authoritysep}="Authorities"; diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index b7642ea3cd..dc384f4cdf 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -182,4 +182,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemHolds','1','Allow OPAC users to place hold on specific items. If OFF, users can only request next available copy.','','YesNo'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CheckSpecificUserPermissions','0','Check most specific staff user permissions',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('GranularPermissions','0','Use detailed staff user permissions',NULL,'YesNo'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql index 647c9a58fb..f3af63c50d 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -183,4 +183,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CircControl',"ItemHomeLibrary",'Précise la bibliothèque qui contrôle les règles de prêt et d''amende',"PickupLibrary|PatronLibrary|ItemHomeLibrary",'Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemHolds','1','Si activé, les adhérents peuvent placer des réservations sur un exemplaire spécifique. Sinon, il ne peuvent que réserver le prochain disponible.','','YesNo'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CheckSpecificUserPermissions','0','Check most specific staff user permissions',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('GranularPermissions','0','Use detailed staff user permissions',NULL,'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 58e7a45b43..240b37ee1a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -1268,9 +1268,9 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { (13, 'batch_upload_patron_images', 'Upload patron images in batch or one at a time'), (13, 'schedule_tasks', 'Schedule tasks to run')"); - $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('CheckSpecificUserPermissions','0','Check most specific staff user permissions',NULL,'YesNo')"); + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('GranularPermissions','0','Use detailed staff user permissions',NULL,'YesNo')"); - print "Upgrade to $DBversion done (adding permissions and user_permissions tables and CheckSpecificUserPermissions syspref) "; + print "Upgrade to $DBversion done (adding permissions and user_permissions tables and GranularPermissions syspref) "; SetVersion ($DBversion); } diff --git a/members/member-flags.pl b/members/member-flags.pl index ac1ca5d567..8901ed73e3 100755 --- a/members/member-flags.pl +++ b/members/member-flags.pl @@ -64,7 +64,7 @@ if ($input->param('newflags')) { $sth = $dbh->prepare("UPDATE borrowers SET flags=? WHERE borrowernumber=?"); $sth->execute($module_flags, $member); - if (C4::Context->preference('CheckSpecificUserPermissions')) { + if (C4::Context->preference('GranularPermissions')) { # deal with subpermissions $sth = $dbh->prepare("DELETE FROM user_permissions WHERE borrowernumber = ?"); $sth->execute($member); @@ -102,7 +102,7 @@ if ($input->param('newflags')) { checked => $checked, flagdesc => $flagdesc ); - if (C4::Context->preference('CheckSpecificUserPermissions')) { + if (C4::Context->preference('GranularPermissions')) { my @sub_perm_loop = (); my $expand_parent = 0; if ($checked) {