Skip to content

Commit cd7e848

Browse files
author
David Renshaw
committed
don't start grains that are trashed
1 parent f870bc0 commit cd7e848

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/imports/server/backend.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ class SandstormBackend {
115115
throw new Meteor.Error(404, "Grain Not Found", "Grain ID: " + grainId);
116116
}
117117

118+
if (grain.trashed) {
119+
throw new Meteor.Error(403, "Grain is in the trash bin", "Grain ID: " + grainId);
120+
}
121+
118122
// If a DevPackage with the same app ID is currently active, we let it override the installed
119123
// package, so that the grain runs using the dev app.
120124
const devPackage = DevPackages.findOne({ appId: grain.appId });

0 commit comments

Comments
 (0)