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

CHANGE #831: Allow accounts with Dev level to see error #832

Merged

Conversation

julio-ufpb
Copy link
Member

Related Issue

Closes #831

Proposed Changes

@julio-ufpb julio-ufpb self-assigned this Oct 1, 2024
@julio-ufpb julio-ufpb linked an issue Oct 1, 2024 that may be closed by this pull request
@NiiMiyo NiiMiyo changed the title change: allow accounts access level dev to see detailed errors CHANGE #831: Allow accounts with Dev level to see error Oct 1, 2024
@@ -86,7 +86,7 @@ public static Response buildResponse(ThrowingConsumer<Response> completionHandle
}
} else {
// unknown exception occurred
response.message = "Ocorreu um erro interno por parte do servidor." + (UserService.getInstance().isProduction() ? "" : "\n (" + e.getMessage() + ")");
response.message = "Ocorreu um erro interno por parte do servidor." + ((UserService.getInstance().isProduction() || !UserService.getInstance().isUserDevSession()) ? "" : "\n (" + e.getMessage() + ")");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Acho que isso faz com que os usuários ADMIN_ROLE não consigam ver as mensagens de erro. Precisaria trocar o nosso nível de acesso nas instâncias, é isso mesmo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

entendi vou ajustar o nivel, pq esta admin > dev > user, o dev pode ver as mensagens de debug mas fica limitado a somente isso ai realmente precisaria ficaria mudando td tempo so pra ver os errors, acho q seria melhor dev > admin > user

@julio-ufpb julio-ufpb merged commit 3682fdb into development Oct 10, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

[CHANGE] Allow accounts with Dev level to see error
2 participants