Add support for mapping permission names to urls when creating the roles

This commit is contained in:
shrey-rafay
2022-03-04 16:24:06 +05:30
committed by Abin Simon
parent b98d04645c
commit 99f9ccaafb

View File

@@ -34,8 +34,8 @@ type authzService struct {
func NewAuthzService(db *bun.DB, en *casbin.CachedEnforcer) AuthzService {
return &authzService{
dao: pg.NewEntityDAO(db),
enforcer: en,
dao: pg.NewEntityDAO(db),
enforcer: en,
mappingCache: make(map[string][]rpmUrlAction),
}
}