Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request ThingsPanel#219 from DoubleLoong/main
Browse files Browse the repository at this point in the history
casbin表修改
  • Loading branch information
DoubleLoong authored Sep 26, 2023
2 parents a8b2b8f + b540fc3 commit 9490ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initialize/casbin/casbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func init() {
checkErr(err, "Failed to open gorm db")

// 使用GORM DB实例和表名创建Casbin适配器,而不检查或创建表\
a, err := gormadapter.NewAdapterByDBUseTableName(db, "postgres", "casbin_rule")
a, err := gormadapter.NewAdapterByDBUseTableName(db, "", "casbin_rule")
checkErr(err, "Failed to create new adapter")

// 创建和配置Casbin执行器
Expand Down

0 comments on commit 9490ef8

Please sign in to comment.