Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoli79 committed Feb 4, 2025
1 parent 1028cbf commit 28fc3af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions www/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,8 @@
$is_free = !is_null($user) && $user->isFree();
$is_anon = is_null($user) || $user->isAnon();

if ($is_free) {
$max_runs = Util::getSetting('max_runs_free_user', 1);
}

$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
$remaining_runs = !is_null($user) ? $user->getRemainingRuns() : 150;
$remaining_runs = !is_null($user) ? $user->getRemainingRuns() : 300;
$hasNoRunsLeft = $is_logged_in ? (int)$remaining_runs <= 0 : false;

$Timers->endTimer('status');
Expand Down

0 comments on commit 28fc3af

Please sign in to comment.