|
Lines 397-402
if ( $tab eq 'sysinfo' ) {
Link Here
|
| 397 |
my $userid = C4::Context->preference('AutoSelfCheckID'); |
397 |
my $userid = C4::Context->preference('AutoSelfCheckID'); |
| 398 |
my $all_permissions = C4::Auth::get_user_subpermissions($userid); |
398 |
my $all_permissions = C4::Auth::get_user_subpermissions($userid); |
| 399 |
my ( $has_self_checkout_perm, $has_other_permissions ); |
399 |
my ( $has_self_checkout_perm, $has_other_permissions ); |
|
|
400 |
|
| 400 |
while ( my ( $module, $permissions ) = each %$all_permissions ) { |
401 |
while ( my ( $module, $permissions ) = each %$all_permissions ) { |
| 401 |
if ( $module eq 'self_check' ) { |
402 |
if ( $module eq 'self_check' ) { |
| 402 |
while ( my ( $permission, $flag ) = each %$permissions ) { |
403 |
while ( my ( $permission, $flag ) = each %$permissions ) { |
|
Lines 416-421
if ( $tab eq 'sysinfo' ) {
Link Here
|
| 416 |
); |
417 |
); |
| 417 |
} |
418 |
} |
| 418 |
|
419 |
|
|
|
420 |
my $patron = Koha::Patrons->find( { borrowernumber => $loggedinuser } ); |
| 421 |
|
| 422 |
my ($has_sysprefs_perm); |
| 423 |
|
| 424 |
if ( C4::Auth::haspermission( $patron->userid, { superlibrarian => '1' } ) ) { |
| 425 |
$has_sysprefs_perm = 1; |
| 426 |
} elsif ( C4::Auth::haspermission( $patron->userid, { parameters => 'manage_sysprefs' } ) ) { |
| 427 |
$has_sysprefs_perm = 1; |
| 428 |
} |
| 429 |
|
| 430 |
$template->param( |
| 431 |
UserHasSysPrefsPerm => $has_sysprefs_perm, |
| 432 |
); |
| 433 |
|
| 419 |
if ( C4::Context->preference('PatronSelfRegistration') ) { |
434 |
if ( C4::Context->preference('PatronSelfRegistration') ) { |
| 420 |
$template->param( warnPrefPatronSelfRegistrationDefaultCategory => 1 ) |
435 |
$template->param( warnPrefPatronSelfRegistrationDefaultCategory => 1 ) |
| 421 |
unless Koha::Patron::Categories->find( C4::Context->preference('PatronSelfRegistrationDefaultCategory') ); |
436 |
unless Koha::Patron::Categories->find( C4::Context->preference('PatronSelfRegistrationDefaultCategory') ); |