From 7249d9136bd5cd36dc741200183d08fabe7dd4ca Mon Sep 17 00:00:00 2001 From: Howl Date: Wed, 7 Sep 2016 12:53:52 +0200 Subject: [PATCH] move rank requests status to ReadConfidential, as it contains user information --- app/start.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/start.go b/app/start.go index 9ec5c8c..99b8429 100644 --- a/app/start.go +++ b/app/start.go @@ -84,7 +84,6 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine { gv1.GET("/users/scores/recent", Method(v1.UserScoresRecentGET)) gv1.GET("/badges", Method(v1.BadgesGET)) gv1.GET("/beatmaps", Method(v1.BeatmapGET)) - gv1.GET("/beatmaps/rank_requests/status", Method(v1.BeatmapRankRequestsStatusGET)) gv1.GET("/leaderboard", Method(v1.LeaderboardGET)) gv1.GET("/tokens", Method(v1.TokenGET)) gv1.GET("/users/self", Method(v1.UserSelfGET)) @@ -97,6 +96,7 @@ func Start(conf common.Conf, dbO *sqlx.DB) *gin.Engine { gv1.GET("/friends", Method(v1.FriendsGET, common.PrivilegeReadConfidential)) gv1.GET("/friends/with", Method(v1.FriendsWithGET, common.PrivilegeReadConfidential)) gv1.GET("/users/self/donor_info", Method(v1.UsersSelfDonorInfoGET, common.PrivilegeReadConfidential)) + gv1.GET("/beatmaps/rank_requests/status", Method(v1.BeatmapRankRequestsStatusGET, common.PrivilegeReadConfidential)) // Write privilege required gv1.GET("/friends/add", Method(v1.FriendsAddGET, common.PrivilegeWrite))