View | Details | Raw Unified | Return to bug 6898
Collapse All | Expand All

(-)a/circ/overdue.pl (-1 / +1 lines)
Lines 51-57 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
51
        query           => $input,
51
        query           => $input,
52
        type            => "intranet",
52
        type            => "intranet",
53
        authnotrequired => 0,
53
        authnotrequired => 0,
54
        flagsrequired   => { reports => 1, circulate => "circulate_remaining_permissions" },
54
        flagsrequired   => { reports => "execute_overdues_report", circulate => "circulate_remaining_permissions" },
55
        debug           => 1,
55
        debug           => 1,
56
    }
56
    }
57
);
57
);
(-)a/installer/data/mysql/en/mandatory/userpermissions.sql (-1 / +2 lines)
Lines 46-50 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
46
   (15, 'renew_subscription', 'Renew a subscription'),
46
   (15, 'renew_subscription', 'Renew a subscription'),
47
   (15, 'routing', 'Routing'),
47
   (15, 'routing', 'Routing'),
48
   (16, 'execute_reports', 'Execute SQL reports'),
48
   (16, 'execute_reports', 'Execute SQL reports'),
49
   (16, 'create_reports', 'Create SQL Reports')
49
   (16, 'create_reports', 'Create SQL Reports'),
50
   (16, 'execute_overdues_report', 'Execute overdue items report')
50
;
51
;
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +8 lines)
Lines 4663-4668 ENDOFRENEWAL Link Here
4663
    print "Upgrade to $DBversion done (Added a system preference to allow renewal of Patron account either from todays date or from existing expiry date in the patrons account.)\n";
4663
    print "Upgrade to $DBversion done (Added a system preference to allow renewal of Patron account either from todays date or from existing expiry date in the patrons account.)\n";
4664
    SetVersion($DBversion);
4664
    SetVersion($DBversion);
4665
}
4665
}
4666
4667
$DBversion = "3.07.00.XXX";
4668
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
4669
    $dbh->do("INSERT INTO  permissions ( module_bit, code, description ) VALUES  ( '16',  'execute_overdues_report',  'Execute overdue items report' )");
4670
    print "Upgrade to $DBversion done ( Add Reports permission execute_overdues_report )\n";
4671
    SetVersion($DBversion);
4672
}
4673
4666
=head1 FUNCTIONS
4674
=head1 FUNCTIONS
4667
4675
4668
=head2 DropAllForeignKeys($table)
4676
=head2 DropAllForeignKeys($table)
4669
- 

Return to bug 6898