mirror of
https://github.com/google/nomulus
synced 2026-02-03 19:42:39 +00:00
Allow admins read/write access to all registrar in web console
This CL removes the "READ vs UPDATE" feature completely. Now anyone with access has full read+write access. We still keep track of which role a user has (did they get access "explicitly" because they are an "allowed access" contact? Or do they have access because they are admins?) for the logs and UI, and also so we could in the (very near) future have features only available to admins. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218169608
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
{template .main}
|
||||
{@param xsrfToken: string} /** Security token. */
|
||||
{@param clientId: string} /** Registrar client identifier. */
|
||||
{@param readWriteClientIds: list<string>}
|
||||
{@param readOnlyClientIds: list<string>}
|
||||
{@param ownerClientIds: list<string>}
|
||||
{@param adminClientIds: list<string>}
|
||||
{@param username: string} /** Arbitrary username to display. */
|
||||
{@param logoutUrl: string} /** Generated URL for logging out of Google. */
|
||||
{@param productName: string} /** Name to display for this software product. */
|
||||
@@ -78,8 +78,8 @@
|
||||
/** Sidebar nav. Ids on each elt for testing only. */
|
||||
{template .navbar_ visibility="private"}
|
||||
{@param clientId: string} /** Registrar client identifier. */
|
||||
{@param readWriteClientIds: list<string>}
|
||||
{@param readOnlyClientIds: list<string>}
|
||||
{@param ownerClientIds: list<string>}
|
||||
{@param adminClientIds: list<string>}
|
||||
|
||||
<div id="reg-nav" class="{css('kd-content-sidebar')}">
|
||||
<form>
|
||||
@@ -88,16 +88,16 @@
|
||||
class="{css('kd-button')} {css('kd-button-submit')}"
|
||||
onchange='this.form.submit()'>
|
||||
<option value="">[auto select]</option>
|
||||
{if length($readWriteClientIds) > 0}
|
||||
<optgroup label="READ/WRITE">
|
||||
{for $id in $readWriteClientIds}
|
||||
{if length($ownerClientIds) > 0}
|
||||
<optgroup label="OWNER">
|
||||
{for $id in $ownerClientIds}
|
||||
<option value="{$id}" {if $id == $clientId}selected{/if}>{$id}</option>
|
||||
{/for}
|
||||
</optgroup>
|
||||
{/if}
|
||||
{if length($readOnlyClientIds) > 0}
|
||||
<optgroup label="READ ONLY">
|
||||
{for $id in $readOnlyClientIds}
|
||||
{if length($adminClientIds) > 0}
|
||||
<optgroup label="ADMIN">
|
||||
{for $id in $adminClientIds}
|
||||
<option value="{$id}" {if $id == $clientId}selected{/if}>{$id}</option>
|
||||
{/for}
|
||||
</optgroup>
|
||||
|
||||
Reference in New Issue
Block a user