Browse Source

Update sys_casbin.go

main
奇淼(piexlmax 3 years ago
committed by GitHub
parent
commit
8c1223ffe9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      server/service/system/sys_casbin.go

2
server/service/system/sys_casbin.go

@ -39,7 +39,7 @@ func (casbinService *CasbinService) UpdateCasbin(authorityId string, casbinInfos
} }
e := casbinService.Casbin() e := casbinService.Casbin()
success, _ := e.AddPolicies(rules) success, _ := e.AddPolicies(rules)
if success == false {
if !success {
return errors.New("存在相同api,添加失败,请联系管理员") return errors.New("存在相同api,添加失败,请联系管理员")
} }
return nil return nil

Loading…
Cancel
Save