(scopeID, dbID string)
| 290 | } |
| 291 | |
| 292 | func intersectID(scopeID, dbID string) string { |
| 293 | switch { |
| 294 | case scopeID == dbID: |
| 295 | return scopeID |
| 296 | case scopeID == policy.WildcardSymbol: |
| 297 | return dbID |
| 298 | case dbID == policy.WildcardSymbol: |
| 299 | return scopeID |
| 300 | default: |
| 301 | // Should not happen when intersecting with matching IDs; fallback to scope ID. |
| 302 | return scopeID |
| 303 | } |
| 304 | } |