WithACLUserList adds an ACL list to a given object
(acl map[string][]policy.Action)
| 215 | |
| 216 | // WithACLUserList adds an ACL list to a given object |
| 217 | func (z Object) WithACLUserList(acl map[string][]policy.Action) Object { |
| 218 | return Object{ |
| 219 | ID: z.ID, |
| 220 | Owner: z.Owner, |
| 221 | OrgID: z.OrgID, |
| 222 | Type: z.Type, |
| 223 | ACLUserList: acl, |
| 224 | ACLGroupList: z.ACLGroupList, |
| 225 | AnyOrgOwner: z.AnyOrgOwner, |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | func (z Object) WithGroupACL(groups map[string][]policy.Action) Object { |
| 230 | return Object{ |
no outgoing calls