Fixed lint

This commit is contained in:
konrad 2018-04-13 14:41:31 +02:00 committed by kolaente
parent 0b4891c3ef
commit 5673acdd60
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ func logAction(actionType ActionType, user *User, itemID int64) (err error) {
return
}
// GetAllLogs returns an array with all logs
func GetAllLogs() (logs []UserLog, err error) {
err = x.OrderBy("id DESC").Find(&logs)
if err != nil {

View File

@ -6,6 +6,7 @@ import (
"net/http"
)
// ShowLogs handels viewing logs
func ShowLogs(c echo.Context) error {
// Check if the user is admin