Bug 6898: fix DB update that assigns the circulate/overdues_report permission
This patch fixes a bug that prevented the circulate/overdues_report permission from being assigned to staff users during upgrade. This patch will not affect databases that are already running 3.12.x or later. Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> This will only fix the permissions for updates done after the patch has been applied. But I agree with Fridolyn, that we can not safely update permissions for existing installations. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Signed-off-by: Galen Charlton <gmc@esilibrary.com> (cherry picked from commitc6bf267050) Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> (cherry picked from commit18c86575ff) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> (cherry picked from commit18c86575ff)
This commit is contained in:
parent
025d62226d
commit
ac2cc03a89
|
|
@ -6234,7 +6234,7 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
|
|||
VALUES ( '1', 'overdues_report', 'Execute overdue items report' )
|
||||
});
|
||||
# add new permission for users with all report permissions and circulation remaining permission
|
||||
my $sth = $dbh->prepare(q{
|
||||
$dbh->do(q{
|
||||
INSERT INTO user_permissions (borrowernumber, module_bit, code)
|
||||
SELECT user_permissions.borrowernumber, 1, 'overdues_report'
|
||||
FROM user_permissions
|
||||
|
|
|
|||
Loading…
Reference in New Issue