Bug 27345: Add missing global permissions for superlibrarian
When a superlibrarian is logged in, C4::Auth::get_template_and_user pass the CAN_user_$flag to the template, but some are missing:
suggestions, lists, cash_management
So far they are not used in the template but it will avoid a developer to spend time on it if we fix it now.
Test plan:
Compare with installer/data/mysql/mandatory/userflags.sql
Note that we don't need selfcheck
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 8c9acd7f28)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1ca4cbf076
commit
a1041bdd58
|
|
@ -319,17 +319,20 @@ sub get_template_and_user {
|
|||
$template->param( CAN_user_editcatalogue => 1 );
|
||||
$template->param( CAN_user_updatecharges => 1 );
|
||||
$template->param( CAN_user_acquisition => 1 );
|
||||
$template->param( CAN_user_suggestions => 1 );
|
||||
$template->param( CAN_user_tools => 1 );
|
||||
$template->param( CAN_user_editauthorities => 1 );
|
||||
$template->param( CAN_user_serials => 1 );
|
||||
$template->param( CAN_user_reports => 1 );
|
||||
$template->param( CAN_user_staffaccess => 1 );
|
||||
$template->param( CAN_user_plugins => 1 );
|
||||
$template->param( CAN_user_coursereserves => 1 );
|
||||
$template->param( CAN_user_plugins => 1 );
|
||||
$template->param( CAN_user_lists => 1 );
|
||||
$template->param( CAN_user_clubs => 1 );
|
||||
$template->param( CAN_user_ill => 1 );
|
||||
$template->param( CAN_user_stockrotation => 1 );
|
||||
$template->param( CAN_user_problem_reports => 1 );
|
||||
$template->param( CAN_user_cash_management => 1 );
|
||||
$template->param( CAN_user_problem_reports => 1 );
|
||||
|
||||
foreach my $module ( keys %$all_perms ) {
|
||||
foreach my $subperm ( keys %{ $all_perms->{$module} } ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue