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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user