google-nomulus/java/google/registry/ui
guyben 19b7a7b3ec Allow only OWNERs to change owner-related data on registrar console
The console will have 2 different "updatable things":
- only ADMINs (GAE-admins and users in the support G-Suite group) can change the things in the "admin settings" tab (currently just the allowed TLDs)
- only OWNERs can change things from the other tabs: WHOIS info, certificates, whitelisted IPs, contacts etc.

Also, all ADMINs are now OWNERS of "non-REAL" registrars. Meaning - we're only
preventing ADMINs from editing "REAL" registrars (usually in production).

Specifically, OTE registrars on sandbox are NOT "REAL", meaning ADMINS will
still be able to update them.

This only changes the backend (registrar-settings endpoint). As-is, the console
website will still make ADMINs *think* they can change everything, but if they
try - they will get an error.

Changing the frontend will happen in the next CL - because I want to get this
out this release cycle and getting JS reviewed takes a long time :(

TESTED=deployed to alpha, and saw I can't update fields even as admin on REAL
registrars, but could change it on non-REAL registrars. Also checked that I can
update the allowed TLDs on REAL registrars

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=222698270
2018-12-03 18:56:28 -05:00
..
assets/images Delete all Braintree code 2018-07-14 01:37:03 -04:00
css Add "Admin" tab to the registrar console 2018-11-12 14:51:40 -05:00
epptmpl mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
externs Add "Admin" tab to the registrar console 2018-11-12 14:51:40 -05:00
forms Use java-8 functionals in FormFields 2018-04-23 14:56:18 -04:00
html Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
js Use AuthenticatedRegistrarAccessor in EppConsoleAction 2018-12-03 18:51:40 -05:00
server Allow only OWNERs to change owner-related data on registrar console 2018-12-03 18:56:28 -05:00
soy Add "Admin" tab to the registrar console 2018-11-12 14:51:40 -05:00
BUILD Delete all Braintree code 2018-07-14 01:37:03 -04:00
compile_test.js Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
conformance_proto.txt mv com/google/domain/registry google/registry 2016-05-13 18:55:08 -04:00
ConsoleDebug.java Delete all Braintree code 2018-07-14 01:37:03 -04:00
globals.txt Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00