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 commit8c9acd7f28) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commita1041bdd58) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
b9a3d143a8
commit
c25f8c72bf
|
|
@ -317,17 +317,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