Hi,
my use-case is that I want to persist Overview Engine filters. They are described by a Document Model “SavedFilter_DM”. It has an enumeration field that describes its “Visibility”. I now want to create an UAA authorization rule that allows access to the filter document either if the user created the filter themself or if the filter has Visibility === “SHARED”. I came up with the following rule in my childAuthorizationDefinition.json:
"repositoryPolicies": [
{
"name": "Saved Filter Visible To Owner Or When Shared",
"target": "#resource == 'SavedFilter_DM'",
"templates": [
{
"operator": "or",
"operands": [
{
"operator": "exact_match",
"field": "/__meta/creator",
"value": "principal.username"
},
{
"operator": "exact_match",
"field": "/SavedFilter/Visibility",
"value": "'SHARED'"
}
]
}
]
}
]
The problem is, that enumerations are compared against their localized values. How would I know statically how the field is localized and what language the client is using? I want to compare against the actual technical value. Is there a property to disable this localized search?