Skip to content

Commit

Permalink
fix: restore check
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Dec 23, 2024
1 parent 6083898 commit 12b0001
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ export class WorkspaceResolver {
Permission.Admin
);

if (permission === Permission.Owner) {
throw new CantChangeSpaceOwner();
}

try {
// lock to prevent concurrent invite and grant
const lockFlag = `invite:${workspaceId}`;
Expand Down

0 comments on commit 12b0001

Please sign in to comment.