fix:tpl bug

This commit is contained in:
zhangwenjian committed 2020-09-12 20:06:13 +08:00
1 parent 31544ff1ae
commit 0b80ac635d
6 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ func (role *SysRole) BatchDelete(id []int) (Result bool, err error) {
// 删除casbin配置
for i := 0; i < len(roles); i++ {
if err := tx.Table("casbin_rule").Where("v0 in (?)", roles[0].RoleKey).Delete(&CasbinRule{}).Error; err != nil {
if err := tx.Table("sys_casbin_rule").Where("v0 in (?)", roles[0].RoleKey).Delete(&CasbinRule{}).Error; err != nil {
tx.Rollback()
return false, err
}