From 062c7e39d0a66696267d4daae40fc6458466f8b4 Mon Sep 17 00:00:00 2001 From: Chris Hirt Date: Thu, 19 Sep 2024 19:23:09 +0700 Subject: [PATCH] add tech support role to allowed roles when sending an invite This fixes a bug where a tech support user cannot add/invite another user --- src/Api/Model/Shared/Command/UserCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Model/Shared/Command/UserCommands.php b/src/Api/Model/Shared/Command/UserCommands.php index 15c0d44fa4..ddb0e0b6d9 100644 --- a/src/Api/Model/Shared/Command/UserCommands.php +++ b/src/Api/Model/Shared/Command/UserCommands.php @@ -566,7 +566,7 @@ public static function sendInvite( // Verify authority of $invitingUser to invite someone of this role $userIsAuthorized = false; $invitingUserRole = $project->users[$invitingUserId]->role; - $authorizedRoles = [ProjectRoles::MANAGER]; + $authorizedRoles = [ProjectRoles::MANAGER, ProjectRoles::TECH_SUPPORT]; if ($roleKey == ProjectRoles::MANAGER) { $userIsAuthorized = in_array($invitingUserRole, $authorizedRoles); }