ResourceUserObject is a helper function to create a user object for authz checks.
(userID uuid.UUID)
| 14 | |
| 15 | // ResourceUserObject is a helper function to create a user object for authz checks. |
| 16 | func ResourceUserObject(userID uuid.UUID) Object { |
| 17 | return ResourceUser.WithID(userID).WithOwner(userID.String()) |
| 18 | } |
| 19 | |
| 20 | // Object is used to create objects for authz checks when you have none in |
| 21 | // hand to run the check on. |