1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Allow console access for all not NONE-type global users (#2441)

This commit is contained in:
Pavlo Tkach
2024-05-13 15:24:11 -04:00
committed by GitHub
parent 53dcba1189
commit 6a5d8ed3b5

View File

@@ -51,7 +51,7 @@ public abstract class ConsoleApiAction implements Runnable {
// This allows us to enable console to a selected cohort of users with release
// We can ignore it in tests
if (RegistryEnvironment.get() != RegistryEnvironment.UNITTEST
&& !GlobalRole.FTE.equals(user.getUserRoles().getGlobalRole())) {
&& GlobalRole.NONE.equals(user.getUserRoles().getGlobalRole())) {
try {
consoleApiParams.response().sendRedirect(ConsoleUiAction.PATH);
return;