Change auth settings on some tools service actions

This brings the affected actions into line with the settings on other similar actions.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=157259842
This commit is contained in:
mountford 2017-05-26 13:58:58 -07:00 committed by Ben McIlwain
parent e46937beac
commit bc63d80a5e
6 changed files with 40 additions and 9 deletions

View file

@ -26,6 +26,8 @@ import google.registry.mapreduce.inputs.EppResourceInputs;
import google.registry.model.EppResource;
import google.registry.request.Action;
import google.registry.request.Response;
import google.registry.request.auth.Auth;
import google.registry.request.auth.AuthLevel;
import javax.inject.Inject;
/**
@ -39,7 +41,15 @@ import javax.inject.Inject;
* run internally, or by pretending to be internal by setting the X-AppEngine-QueueName header,
* which only admin users can do.
*/
@Action(path = "/_dr/task/resaveAllEppResources")
@Action(
path = "/_dr/task/resaveAllEppResources",
auth =
@Auth(
methods = {Auth.AuthMethod.INTERNAL, Auth.AuthMethod.API},
minimumLevel = AuthLevel.APP,
userPolicy = Auth.UserPolicy.ADMIN
)
)
public class ResaveAllEppResourcesAction implements Runnable {
@Inject MapreduceRunner mrRunner;