Skip to content

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Jul 17, 2024

Description

Fixes permission discrepancies with prebuilds the user did not start themselves.

Related Issue(s)

Fixes ENT-474
Fixes ENT-481, although a bit lazily

How to test

https://ft-fix-sto5f07d12d0f.preview.gitpod-dev.com

  1. Join my org
  2. Call me and make me run a prebuild
  3. Try cancelling it

I did step 2-3 for you with a second account and can confirm cancelling works :).

/hold

Copy link
Contributor

@mustard-mh mustard-mh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@roboquat roboquat merged commit a43054a into main Jul 17, 2024
57 of 58 checks passed
@roboquat roboquat deleted the ft/fix-stopping-prebuilds branch July 17, 2024 12:08
): Promise<void> {
await this.auth.checkPermissionOnWorkspace(userId, "stop", workspaceId);
if (!options.skipPermissionCheck) {
await this.auth.checkPermissionOnWorkspace(userId, "stop", workspaceId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants