Skip to content

Commit 9440327

Browse files
authored
add tech support role to allowed roles when sending an invite (#1835)
### Fixes #1834 ## Description This fixes a bug where a tech support user cannot add/invite another user Looks like the tech support role was left off the list of allowed roles to send an invite. ## Testing Verify that the repro steps in the bug report show no error message
1 parent f2cd9a8 commit 9440327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Model/Shared/Command/UserCommands.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public static function sendInvite(
566566
// Verify authority of $invitingUser to invite someone of this role
567567
$userIsAuthorized = false;
568568
$invitingUserRole = $project->users[$invitingUserId]->role;
569-
$authorizedRoles = [ProjectRoles::MANAGER];
569+
$authorizedRoles = [ProjectRoles::MANAGER, ProjectRoles::TECH_SUPPORT];
570570
if ($roleKey == ProjectRoles::MANAGER) {
571571
$userIsAuthorized = in_array($invitingUserRole, $authorizedRoles);
572572
}

0 commit comments

Comments
 (0)