Skip to content

Commit

Permalink
repair the logic to match only on given user (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis authored Jan 26, 2023
1 parent be4b581 commit a4afdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/components/DisabledRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static function match($against,$disabled_routes,bool $with_player=false):
if($route[0]!=='/' && $route[0]!=='%')
$route="/$route";

if($with_player===true && Yii::$app->user->isGuest && intval($r['player_id'])!==Yii::$app->user->id)
if($with_player===true && !Yii::$app->user->isGuest && intval($r['player_id'])!==Yii::$app->user->id)
{
/*
* go back if the record refers to player
Expand Down

0 comments on commit a4afdc1

Please sign in to comment.