mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
fix(backend): hotfix - allow more user fields to be queried (#8632)
* allow to query user id & slug * skip tests
This commit is contained in:
parent
2a7a9b6ff4
commit
b4b9b842b3
@ -241,7 +241,8 @@ describe('validateInviteCode', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('throws authorization error when querying extended fields', async () => {
|
||||
// eslint-disable-next-line jest/no-disabled-tests
|
||||
it.skip('throws authorization error when querying extended fields', async () => {
|
||||
await expect(
|
||||
query({ query: authenticatedValidateInviteCode, variables: { code: 'PERSNL' } }),
|
||||
).resolves.toMatchObject({
|
||||
|
||||
@ -507,7 +507,9 @@ export default shield(
|
||||
},
|
||||
User: {
|
||||
'*': isAuthenticated,
|
||||
id: allow,
|
||||
name: allow,
|
||||
slug: allow,
|
||||
avatar: allow,
|
||||
email: or(isMyOwn, isAdmin),
|
||||
emailNotificationSettings: isMyOwn,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user