1
0

Update web handler (fixed)

This commit is contained in:
kolaente
2019-03-29 18:29:44 +01:00
parent 81f76f09ce
commit e21471a193
8 changed files with 31 additions and 14 deletions

View File

@ -45,8 +45,8 @@ func (c *WebHandler) UpdateWeb(ctx echo.Context) error {
if err != nil {
return HandleHTTPError(err, ctx)
}
if canUpdate {
config.LoggingProvider.Noticef("Tried to create while not having the rights for it (User: %v)", currentAuth)
if !canUpdate {
config.LoggingProvider.Noticef("Tried to update while not having the rights for it (User: %v)", currentAuth)
return echo.NewHTTPError(http.StatusForbidden)
}