wabe 0.5.18 → 0.5.19

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -62566,7 +62566,7 @@ var signUpWithResolver = async (_, {
62566
62566
  input
62567
62567
  }, context) => {
62568
62568
  const userSchema = context.wabe.config.schema?.classes?.find((classItem) => classItem.name === "User");
62569
- if (userSchema?.permissions?.create?.requireAuthentication === true)
62569
+ if (userSchema?.permissions?.create?.requireAuthentication === true && !context.isRoot)
62570
62570
  throw new Error("Permission denied to create class User");
62571
62571
  const res = await context.wabe.controllers.database.createObject({
62572
62572
  className: "User",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.5.18",
3
+ "version": "0.5.19",
4
4
  "description": "Your backend in minutes not days",
5
5
  "homepage": "https://wabe.dev",
6
6
  "author": {