Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Access Denied" mesmo com "role: admin" #70

Open
raloliver opened this issue Aug 29, 2023 · 1 comment
Open

"Access Denied" mesmo com "role: admin" #70

raloliver opened this issue Aug 29, 2023 · 1 comment

Comments

@raloliver
Copy link

Ola Mango... clonei o repo pra rodar a API localmente e mesmo passando a role admin no banco de dados, continuo com "Access Denied".

image

Sabe dizer se é preciso fazer algo além disso? Gostaria de manter essa regra do admin, mas não consigo fazer funcionar =/

Não fiz nenhuma alteração no código, só mesmo clonei e rodei o container.

@patrick-bremm-sofist
Copy link

patrick-bremm-sofist commented Nov 21, 2023

Consegui resolver agora, segue o caminho, só mudar a linha 41 e fazer esse import no começo do arquivo:

import { ObjectId } from 'mongodb'

image

Lembrando que a collection Accounts precisa da coluna accessToken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants