Skip to content

[Bug]GetAllUsersByDomain #789

@wusphinx

Description

@wusphinx

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions