-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Describe the bug
I got nothing with GetAllUsersByDomain
To Reproduce
model.conf
policy.csv
package domain
import (
"testing"
"github.com/casbin/casbin/v2"
)
func TestDomain(t *testing.T) {
e, err := casbin.NewEnforcer("model.conf", "policy.csv")
if err != nil {
t.FailNow()
}
users := e.GetAllUsersByDomain("domain2")
t.Logf("users :%v", users)
}Expected behavior
According to the configuration, at least admin should be in the returned results
Reactions are currently unavailable