This commit is contained in:
邹宗楠
2024-10-11 15:03:10 +08:00
parent 490ab561da
commit 1c136089da
5 changed files with 0 additions and 9 deletions

View File

@@ -11,14 +11,10 @@ var (
)
func Init() {
globals.SugarLogger.Debugf("-----------api2-1")
RoleMan2, err := casbinauth.New("conf/rbac_model.conf")
globals.SugarLogger.Debugf("-----------api2- %v", err)
globals.SugarLogger.Debugf("-----------api2-RoleMan2 %v", RoleMan2)
if err != nil {
globals.SugarLogger.Error(err.Error())
} else {
RoleMan = RoleMan2
}
globals.SugarLogger.Debugf("-----------api2-")
}