We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let say i have this sorts of permissions:
permissions["view_sales"] = gorbac.NewStdPermission("view_sales") permissions["edit_sales"] = gorbac.NewStdPermission("edit_sales")
if rbac.IsGranted("cashier", permissions["delete_sales"], nil) { fmt.Println("Permission delete_sales::YES") }
gorbac will simply throw a panic on me if delete_sales is not a valid / non existence permission. Is there a way to simply return false instead?
delete_sales
false
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Let say i have this sorts of permissions:
gorbac will simply throw a panic on me if
delete_sales
is not a valid / non existence permission.Is there a way to simply return
false
instead?The text was updated successfully, but these errors were encountered: