1
0
mirror of https://github.com/google/nomulus synced 2026-01-06 21:47:31 +00:00

Explain why permission check occurs before existence check

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=240355450
This commit is contained in:
mcilwain
2019-03-26 08:45:42 -07:00
committed by jianglai
parent 648656e002
commit e1abef7b3e

View File

@@ -220,6 +220,8 @@ public class AuthenticatedRegistrarAccessor {
* @param clientId ID of the registrar we request
*/
public Registrar getRegistrar(String clientId) throws RegistrarAccessDeniedException {
// Verify access before checking if the registrar exists, in order to not leak information
// about objects in the system the user doesn't have permissions on.
verifyAccess(clientId);
Registrar registrar =