changed role permission
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-26 16:34:28 +05:00
1 parent f0ecf23879
commit 323e131216
74 files changed
+2915 -4713

No files matched your search

+3 -1
View File
@@ -8,6 +8,8 @@ import (
"online-back/internal/appresult"
"online-back/internal/handlers"
"online-back/internal/identity/rbac"
"online-back/internal/identity/rbac/perm"
"online-back/internal/shared"
"online-back/pkg/logging"
@@ -27,7 +29,7 @@ func NewHandler(logger *logging.Logger, repository Repository) handlers.Handler
}
func (h *handler) Register(router *gin.RouterGroup) {
group := router.Group(baseURL, appresult.JwtTokenCheck())
group := rbac.Group(router, baseURL, rbac.Catalog(perm.Loans))
group.GET("", h.list)
group.GET("/:id", h.getByID)
group.POST("", h.create)