File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
package handlers
2
2
3
3
import (
4
+ "net/http"
5
+ "strconv"
6
+
4
7
"github.com/Quaver/api2/db"
5
8
"github.com/Quaver/api2/enums"
6
9
"github.com/gin-gonic/gin"
7
10
"gorm.io/gorm"
8
- "net/http"
9
- "strconv"
10
11
)
11
12
12
13
// GetClanScoresForMode Retrieves clan scores for a given mode
@@ -78,10 +79,6 @@ func GetClanScoresForMap(c *gin.Context) *APIError {
78
79
return apiErr
79
80
}
80
81
81
- if ! hasDonatorScoreboardAccess (dbMap , getAuthedUser (c )) {
82
- return APIErrorForbidden ("You must be a donator to access this score." )
83
- }
84
-
85
82
clanScores , err := db .GetClanScoreboardForMap (dbMap .MD5 )
86
83
87
84
if err != nil {
@@ -107,10 +104,6 @@ func GetClanPersonalBestScore(c *gin.Context) *APIError {
107
104
return apiErr
108
105
}
109
106
110
- if ! hasDonatorScoreboardAccess (dbMap , getAuthedUser (c )) {
111
- return APIErrorForbidden ("You must be a donator to access this score." )
112
- }
113
-
114
107
clanScore , err := db .GetClanScore (dbMap .MD5 , clanId )
115
108
116
109
if err != nil && err != gorm .ErrRecordNotFound {
You can’t perform that action at this time.
0 commit comments