feat(perms): Add UserPermissions

This is used to associate a user with a set of permissions which is
necessary for repositories that need honor the OnlySelf aspect of a
Permission.
pull/2342/head
Timothy Messier 4 years ago
parent 39fedd843c
commit 05b3d2917b
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

@ -40,6 +40,12 @@ type Permission struct {
All bool // We got a wildcard in the grant string's `id` field.
}
// UserPermissions is a set of Permissions for a User.
type UserPermissions struct {
UserId string
Permissions []Permission
}
// Resource defines something within boundary that requires authorization
// capabilities. Resources must have a ScopeId.
type Resource struct {

Loading…
Cancel
Save