Minor changes

This commit is contained in:
2018-03-07 14:52:56 +01:00
parent d583d9d6f9
commit 1b0aa76009
6 changed files with 31 additions and 5 deletions

View File

@ -15,6 +15,10 @@ func Cover(ctx *aero.Context) string {
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
}
if !user.IsPro() {
return ctx.Error(http.StatusUnauthorized, "Only available for PRO users", nil)
}
// Retrieve file from post body
data, err := ctx.Request().Body().Bytes()