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.
- package/dist/index.js +1 -1
- 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",
|