mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
feat(BE-309): add permission dashboard
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package middleware
|
||||
|
||||
const(
|
||||
P_DashboardGetAll = "lti.dashboard.list"
|
||||
)
|
||||
// project-flock
|
||||
const (
|
||||
P_ProjectFlockKandangsClosing = "lti.production.project_flock_kandangs.closing"
|
||||
|
||||
@@ -14,13 +14,5 @@ func DashboardRoutes(v1 fiber.Router, u user.UserService, s dashboard.DashboardS
|
||||
|
||||
route := v1.Group("/dashboards")
|
||||
route.Use(m.Auth(u))
|
||||
|
||||
// route.Get("/", m.RequirePermissions(m.P_FinanceGetAll), ctrl.GetAll)
|
||||
// route.Post("/", m.RequirePermissions(m.P_FinanceGetOne), ctrl.CreateOne)
|
||||
// route.Get("/:id", m.RequirePermissions(m.P_FinanceCreateOne), ctrl.GetOne)
|
||||
// route.Patch("/:id", m.RequirePermissions(m.P_FinanceUpdateOne), ctrl.UpdateOne)
|
||||
// route.Delete("/:id", m.RequirePermissions(m.P_FinanceDeleteOne), ctrl.DeleteOne)
|
||||
|
||||
route.Get("/", ctrl.GetAll)
|
||||
// route.Get("/:id", ctrl.GetOne)
|
||||
route.Get("/",m.RequirePermissions(m.P_DashboardGetAll) ,ctrl.GetAll)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user