mirror of
https://github.com/google/nomulus.git
synced 2025-06-05 20:17:27 +02: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:
parent
648656e002
commit
e1abef7b3e
1 changed files with 2 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue