You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAIL src/middleware/permissionsMiddleware.spec.js (10.062s)
authorization
given an owner, an other user, an admin, a moderator
access email address
unauthenticated
β throws an error and does not expose the owner's email address (939ms)
authenticated
as the owner
β exposes the owner's email address (626ms)
as another regular user
β throws an error and does not expose the owner's email address (640ms)
as a moderator
β throws an error and does not expose the owner's email address (655ms)
as an administrator
β exposes the owner's email address (605ms)
access Signup
admin invite only
as user
β denies permission (981ms)
as admin
β returns an email (1077ms)
public registration
as anyone
β returns an email (985ms)
invite registration
as anyone with valid invite code
β returns an email (1029ms)
as anyone without valid invite
β denies permission (882ms)
β authorization βΊ given an owner, an other user, an admin, a moderator βΊ access Signup βΊ invite registration βΊ as anyone without valid invite βΊ denies permission
TypeError: Cannot read property 'get' of undefined
100 | options.avatar,
101 | ])
> 102 | await Promise.all([user.relateTo(email, 'primaryEmail'), email.relateTo(user, 'belongsTo')])
| ^
103 | if (avatar) await user.relateTo(avatar, 'avatar')
104 | return user
105 | })
at node_modules/neode/build/Services/RelateTo.js:53:38
at runMicrotasks (<anonymous>)
at async Promise.all (index 0)
at Array.<anonymous> (src/db/factories.js:102:5)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
π Bugreport
!!! duplicate of #4572
The text was updated successfully, but these errors were encountered: