google-nomulus/java/google/registry/ui/server
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
..
registrar Allow only OWNERs to change owner-related data on registrar console 2018-12-03 18:56:28 -05:00
BUILD Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarFormFields.java Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
SoyTemplateUtils.java Remove references to SoySyntaxException 2018-02-20 15:37:48 -05:00
StateCode.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00