You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a2a95bb
Browse filesBrowse the repository at this point in the historyBrowse files
// getNextReview assigns and returns the next application needing review
168
168
//
169
169
// @Summary Get next review assignment (Admin)
170
-
// @Description Automatically assigns the next submitted application needing review to the current admin and returns it
170
+
// @Description Automatically assigns the next submitted application needing review to the current admin and returns it. Super admins who have disabled their review assignment toggle are refused.
171
171
// @Tags admin/reviews
172
172
// @Produce json
173
173
// @Success 200 {object} ReviewResponse
174
174
// @Failure 401 {object} object{error=string}
175
-
// @Failure 403 {object} object{error=string}
175
+
// @Failure 403 {object} object{error=string} "Review assignment disabled for this super admin"
176
176
// @Failure 404 {object} object{error=string} "No applications need review"
Copy file name to clipboardExpand all lines: docs/docs.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1101,7 +1101,7 @@ const docTemplate = `{
1101
1101
"CookieAuth": []
1102
1102
}
1103
1103
],
1104
-
"description": "Automatically assigns the next submitted application needing review to the current admin and returns it",
1104
+
"description": "Automatically assigns the next submitted application needing review to the current admin and returns it. Super admins who have disabled their review assignment toggle are refused.",
1105
1105
"produces": [
1106
1106
"application/json"
1107
1107
],
@@ -1128,7 +1128,7 @@ const docTemplate = `{
1128
1128
}
1129
1129
},
1130
1130
"403": {
1131
-
"description": "Forbidden",
1131
+
"description": "Review assignment disabled for this super admin",
0 commit comments