mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-11 12:45:22 -05:00
Fixed some bugs with the validation of the end of match requests.
Forgot to change the false of the Authorize() method. Fixed comparison of Match creator and user that send teh request. To compare objects don't use ===, use == instead.
This commit is contained in:
@@ -76,7 +76,7 @@ public function executeChallengeProgressionBatch(ExecuteChallengeProgressionBatc
|
||||
|
||||
// Only allow the saving of challenge progress if the request comes from the same user as from the
|
||||
// game the request is coming from.
|
||||
if($user !== $foundGame->creator)
|
||||
if($user != $foundGame->creator)
|
||||
throw new AuthorizationException('Not allowed to save progress');
|
||||
|
||||
$progressUser = User::find($request->userId);
|
||||
|
||||
Reference in New Issue
Block a user