We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Just wanted to make a note for everybody else(Most likely it can be resolved from model)
Example:
p, 0, /v1/login, read p, 0, /v1/register, read p, 2, /v1/home, read
Doesn't work:
var currentUserType int if auth_rules.AuthEnforcer.Enforce(currentUserType, r.URL.Path, "read") == true {
Works(Convert int into string and then pass it to the Enforcer):
var currentUserType int if auth_rules.AuthEnforcer.Enforce(strconv.Itoa(currentUserType), r.URL.Path, "read") == true {
Just wanted to make a note for everybody else(Most likely it can be resolved from model)
Example:
Doesn't work:
Works(Convert int into string and then pass it to the Enforcer):