奇淼(piexlmax
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 |
|
|