-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforcer passes silently a non-existent policy file #163
Comments
The following test has passed in Travis. Lines 149 to 160 in 02f3171
|
Can you please try running the code above? For some reason, it works OK when paths are absolute, but gives "falses" if paths are relative. |
I can't reproduce your error. You need to provide a runnable Git repository, which clearly shows the error. |
Oh, the error was that I passed a non-existent file |
I already encountered the panic, didn't you see it?
|
It panics on the non-existent model file and passes silently on the non-existent policy file. |
This issue is fixed in: 287dc51 |
https://github.com/casbin/casbin/blob/master/examples/rbac_with_domains_model.conf
https://github.com/casbin/casbin/blob/master/examples/rbac_with_domains_policy.csv
main.go
go build main.go
output:The text was updated successfully, but these errors were encountered: