mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58:34 +02:00
Add view/edit basic registrar details permissions (#2036)
This encompasses most of the basic information that is viewable in the existing console, basically, just viewing the base info of the Registrar object.
This commit is contained in:
parent
219e9d3afb
commit
6b75cf8496
2 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,10 @@ package google.registry.model.console;
|
||||||
|
|
||||||
/** Permissions that users may have in the UI, either per-registrar or globally. */
|
/** Permissions that users may have in the UI, either per-registrar or globally. */
|
||||||
public enum ConsolePermission {
|
public enum ConsolePermission {
|
||||||
|
/** View basic information about a registrar. */
|
||||||
|
VIEW_REGISTRAR_DETAILS,
|
||||||
|
/** Edit basic information about a registrar. */
|
||||||
|
EDIT_REGISTRAR_DETAILS,
|
||||||
/** Add, update, or remove other console users. */
|
/** Add, update, or remove other console users. */
|
||||||
MANAGE_USERS,
|
MANAGE_USERS,
|
||||||
/** Add, update, or remove registrars. */
|
/** Add, update, or remove registrars. */
|
||||||
|
|
|
@ -27,6 +27,8 @@ public class ConsoleRoleDefinitions {
|
||||||
/** Permissions for a registry support agent. */
|
/** Permissions for a registry support agent. */
|
||||||
static final ImmutableSet<ConsolePermission> SUPPORT_AGENT_PERMISSIONS =
|
static final ImmutableSet<ConsolePermission> SUPPORT_AGENT_PERMISSIONS =
|
||||||
ImmutableSet.of(
|
ImmutableSet.of(
|
||||||
|
ConsolePermission.VIEW_REGISTRAR_DETAILS,
|
||||||
|
ConsolePermission.EDIT_REGISTRAR_DETAILS,
|
||||||
ConsolePermission.MANAGE_USERS,
|
ConsolePermission.MANAGE_USERS,
|
||||||
ConsolePermission.MANAGE_ACCREDITATION,
|
ConsolePermission.MANAGE_ACCREDITATION,
|
||||||
ConsolePermission.CONFIGURE_EPP_CONNECTION,
|
ConsolePermission.CONFIGURE_EPP_CONNECTION,
|
||||||
|
@ -69,6 +71,7 @@ public class ConsoleRoleDefinitions {
|
||||||
/** Permissions for a registrar partner account manager. */
|
/** Permissions for a registrar partner account manager. */
|
||||||
static final ImmutableSet<ConsolePermission> ACCOUNT_MANAGER_PERMISSIONS =
|
static final ImmutableSet<ConsolePermission> ACCOUNT_MANAGER_PERMISSIONS =
|
||||||
ImmutableSet.of(
|
ImmutableSet.of(
|
||||||
|
ConsolePermission.VIEW_REGISTRAR_DETAILS,
|
||||||
ConsolePermission.DOWNLOAD_DOMAINS,
|
ConsolePermission.DOWNLOAD_DOMAINS,
|
||||||
ConsolePermission.VIEW_TLD_PORTFOLIO,
|
ConsolePermission.VIEW_TLD_PORTFOLIO,
|
||||||
ConsolePermission.CONTACT_SUPPORT,
|
ConsolePermission.CONTACT_SUPPORT,
|
||||||
|
@ -89,6 +92,7 @@ public class ConsoleRoleDefinitions {
|
||||||
new ImmutableSet.Builder<ConsolePermission>()
|
new ImmutableSet.Builder<ConsolePermission>()
|
||||||
.addAll(ACCOUNT_MANAGER_WITH_REGISTRY_LOCK_PERMISSIONS)
|
.addAll(ACCOUNT_MANAGER_WITH_REGISTRY_LOCK_PERMISSIONS)
|
||||||
.add(
|
.add(
|
||||||
|
ConsolePermission.EDIT_REGISTRAR_DETAILS,
|
||||||
ConsolePermission.MANAGE_ACCREDITATION,
|
ConsolePermission.MANAGE_ACCREDITATION,
|
||||||
ConsolePermission.CONFIGURE_EPP_CONNECTION,
|
ConsolePermission.CONFIGURE_EPP_CONNECTION,
|
||||||
ConsolePermission.CHANGE_NOMULUS_PASSWORD,
|
ConsolePermission.CHANGE_NOMULUS_PASSWORD,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue