user_status: return no status if visibility is insufficient

This commit is contained in:
Derf Null 2023-05-21 19:26:30 +02:00
parent 72f6c2ea2d
commit 2e10115072
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -374,15 +374,14 @@ sub user_status {
)
)
{
$status->{checked_in} = 0;
$status->{arr_name} = undef;
$status = {};
}
}
if ( not $status->{checked_in}
and $status->{arr_name}
and not $user->{past_status} )
{
$status->{arr_name} = undef;
$status = {};
}
if ( $status->{checked_in} ) {