feat: refine OT flow, reports, theming and sidebar UX
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
func RegisterRoutes(app *fiber.App, db *database.DB, secret string) {
|
||||
read := []fiber.Handler{
|
||||
auth.RequireAuth(secret),
|
||||
auth.RequireRole("tenant_admin", "manager"),
|
||||
auth.RequireRole("tenant_admin", "manager", "technician"),
|
||||
auth.TenantMiddleware(db),
|
||||
}
|
||||
admin := []fiber.Handler{
|
||||
|
||||
@@ -15,6 +15,7 @@ var AllowedKeys = map[string]bool{
|
||||
"company_phone": true,
|
||||
"company_email": true,
|
||||
"company_logo": true,
|
||||
"ui_theme": true,
|
||||
}
|
||||
|
||||
func GetSettings(ctx context.Context, conn *pgxpool.Conn) (map[string]string, error) {
|
||||
|
||||
Reference in New Issue
Block a user