backend-manager 3.2.145 → 3.2.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.145",
3
+ "version": "3.2.146",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -15,9 +15,9 @@ Module.prototype.main = function () {
15
15
  const payload = self.payload;
16
16
 
17
17
  return new Promise(async function(resolve, reject) {
18
- // If not dev, quit
19
- if (!assistant.isDevelopment()) {
20
- return reject(assistant.errorify(`This command is only available in development mode`, {code: 401}));
18
+ // Perform checks
19
+ if (!payload.user.roles.admin && assistant.isProduction()) {
20
+ return reject(assistant.errorify(`Admin required.`, {code: 401}));
21
21
  }
22
22
 
23
23
  // Check for required options