Publish current project state
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"github.com/gochat/gochat/internal/auth"
|
||||
"github.com/gochat/gochat/internal/model"
|
||||
"github.com/gochat/gochat/internal/service"
|
||||
applogger "github.com/gochat/gochat/pkg/logger"
|
||||
@@ -100,7 +101,7 @@ func RegisterAuditRoutes(rg *gin.RouterGroup, h *AuditHandler) {
|
||||
|
||||
func isAuditAdmin(c *gin.Context) bool {
|
||||
role := getRole(c)
|
||||
return role == "administrator" || role == "super_admin"
|
||||
return role == auth.RoleAdministrator || role == auth.RoleSuperAdmin
|
||||
}
|
||||
|
||||
func parseAuditPage(raw string) int {
|
||||
|
||||
Reference in New Issue
Block a user