You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@BERZERKCOOLeST Casbin is based on policy rule matching. It means you need to have at least one "p" (policy rule) in matcher eval(p.sub_rule) && r.obj == p.obj && r.act == p.act || r.sub.Name == 'admin' to make the matcher evaluates for one request and one policy. If you have no policy, the matcher will never run at all, and of course returns false. For your case, I just recommend checking "admin" string in Golang.
it returns the error now even that sub is a admin, how to deal with this?
The text was updated successfully, but these errors were encountered: