Remove internal_only from some APIs now that we expose a user admin scope

Fixes #1246
This commit is contained in:
Joseph Schorr 2016-02-16 16:50:33 -05:00
parent e8faa9f843
commit 8d9f3309aa
2 changed files with 1 additions and 4 deletions

View file

@ -8,7 +8,7 @@ from dateutil.relativedelta import relativedelta
from endpoints.api import (resource, nickname, ApiResource, query_param, parse_args,
RepositoryParamResource, require_repo_admin, related_user_resource,
format_date, Unauthorized, NotFound, require_user_admin,
internal_only, path_param, require_scope, page_support)
path_param, require_scope, page_support)
from auth.permissions import AdministerOrganizationPermission, AdministerOrganizationPermission
from auth.auth_context import get_authenticated_user
from data import model, database
@ -130,7 +130,6 @@ class RepositoryLogs(RepositoryParamResource):
@resource('/v1/user/logs')
@internal_only
class UserLogs(ApiResource):
""" Resource for fetching logs for the current user. """
@require_user_admin
@ -199,7 +198,6 @@ class RepositoryAggregateLogs(RepositoryParamResource):
@resource('/v1/user/aggregatelogs')
@internal_only
class UserAggregateLogs(ApiResource):
""" Resource for fetching aggregated logs for the current user. """
@require_user_admin

View file

@ -50,7 +50,6 @@ def org_view(o, teams):
@resource('/v1/organization/')
@internal_only
class OrganizationList(ApiResource):
""" Resource for creating organizations. """
schemas = {