We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f870bc0 commit cd7e848Copy full SHA for cd7e848
shell/imports/server/backend.js
@@ -115,6 +115,10 @@ class SandstormBackend {
115
throw new Meteor.Error(404, "Grain Not Found", "Grain ID: " + grainId);
116
}
117
118
+ if (grain.trashed) {
119
+ throw new Meteor.Error(403, "Grain is in the trash bin", "Grain ID: " + grainId);
120
+ }
121
+
122
// If a DevPackage with the same app ID is currently active, we let it override the installed
123
// package, so that the grain runs using the dev app.
124
const devPackage = DevPackages.findOne({ appId: grain.appId });
0 commit comments