basicly implement acl crud ops with roles and resources
This commit is contained in:
@@ -202,7 +202,7 @@ var serveCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
// also acl !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
userData, err := gorm.Open(sqlite.Open(filepath.Join(cfg.Data.DataPath, "user_data.sqlite3")), &gorm.Config{})
|
||||
userData, err := gorm.Open(sqlite.Open(filepath.Join(cfg.Data.DataPath, "user_data.sqlite3")+"?_foreign_keys=on"), &gorm.Config{})
|
||||
if err != nil {
|
||||
slog.Error("Failed to open user database", slog.String("error", err.Error()))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user