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:
1 file changed
+6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user