1
0

Added logging

This commit is contained in:
kolaente
2018-09-19 08:35:53 +02:00
parent 091711f4c5
commit e93cba7108
24 changed files with 1596 additions and 10 deletions

View File

@ -20,6 +20,8 @@ func (c *WebHandler) ReadAllWeb(ctx echo.Context) error {
lists, err := c.CObject.ReadAll(&currentUser)
if err != nil {
models.Log.Error(err.Error())
if models.IsErrNeedToHaveListReadAccess(err) {
return echo.NewHTTPError(http.StatusForbidden, "You need to have read access to this list.")
}