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.
This commit is contained in:
Timothy Messier committed 2022-09-07 17:49:01 +00:00
1 parent 39fedd843c
commit 05b3d2917b
1 file changed
+6
+6
View File
@@ -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 {