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
When a user creates a resource they should be automatically given a grant to that resource.
Ex:
User with ID 1234 should have the following grant: { identity: u:1234, privilege: read, resource: infra.users.u:1234 }
Currently we just check if the user is calling requesting their own resource.
var db *gorm.DB if user != nil && user.ID == userID { db = getDB(c) } else { var err error db, err = requireAuthorization(c, "read", "infra.groups") if err != nil { return nil, err } }
This pattern can be removed when users get grants on their own resources.
The text was updated successfully, but these errors were encountered:
Closing for now, will re-visit
Sorry, something went wrong.
No branches or pull requests
When a user creates a resource they should be automatically given a grant to that resource.
Ex:
Currently we just check if the user is calling requesting their own resource.
This pattern can be removed when users get grants on their own resources.
The text was updated successfully, but these errors were encountered: