(b Object)
| 91 | } |
| 92 | |
| 93 | func (z Object) Equal(b Object) bool { |
| 94 | if z.ID != b.ID { |
| 95 | return false |
| 96 | } |
| 97 | if z.Owner != b.Owner { |
| 98 | return false |
| 99 | } |
| 100 | if z.OrgID != b.OrgID { |
| 101 | return false |
| 102 | } |
| 103 | if z.Type != b.Type { |
| 104 | return false |
| 105 | } |
| 106 | |
| 107 | if !equalACLLists(z.ACLUserList, b.ACLUserList) { |
| 108 | return false |
| 109 | } |
| 110 | |
| 111 | if !equalACLLists(z.ACLGroupList, b.ACLGroupList) { |
| 112 | return false |
| 113 | } |
| 114 | |
| 115 | return true |
| 116 | } |
| 117 | |
| 118 | func equalACLLists(a, b map[string][]policy.Action) bool { |
| 119 | if len(a) != len(b) { |