mirror of
https://github.com/google/nomulus
synced 2026-01-03 03:35:42 +00:00
Allow console access for all not NONE-type global users (#2441)
This commit is contained in:
@@ -51,7 +51,7 @@ public abstract class ConsoleApiAction implements Runnable {
|
|||||||
// This allows us to enable console to a selected cohort of users with release
|
// This allows us to enable console to a selected cohort of users with release
|
||||||
// We can ignore it in tests
|
// We can ignore it in tests
|
||||||
if (RegistryEnvironment.get() != RegistryEnvironment.UNITTEST
|
if (RegistryEnvironment.get() != RegistryEnvironment.UNITTEST
|
||||||
&& !GlobalRole.FTE.equals(user.getUserRoles().getGlobalRole())) {
|
&& GlobalRole.NONE.equals(user.getUserRoles().getGlobalRole())) {
|
||||||
try {
|
try {
|
||||||
consoleApiParams.response().sendRedirect(ConsoleUiAction.PATH);
|
consoleApiParams.response().sendRedirect(ConsoleUiAction.PATH);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user