mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 08:26:53 +00:00
Add support for mapping permission names to urls when creating the roles
This commit is contained in:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user