From 9fbd3869b6f5ddbe130826214494844c829b1417 Mon Sep 17 00:00:00 2001 From: Ben Stein Date: Fri, 15 Nov 2024 12:31:17 -0500 Subject: [PATCH] Fix teamup bug --- src/Gameboard.Api/Features/Player/PlayerController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gameboard.Api/Features/Player/PlayerController.cs b/src/Gameboard.Api/Features/Player/PlayerController.cs index dd60c725..fbda0e65 100644 --- a/src/Gameboard.Api/Features/Player/PlayerController.cs +++ b/src/Gameboard.Api/Features/Player/PlayerController.cs @@ -206,7 +206,7 @@ public async Task Invite([FromRoute] string id) { await AuthorizeAny ( - () => _permissionsService.IsActingUserAsync(id), + () => IsSelf(id), () => _permissionsService.Can(PermissionKey.Teams_Enroll) );