Matrix Version: 5.3
I’m having an issue using a keyword as the argument for another keyword.
Example of my keyword values:
%asset_write_permission_assetid% = 123, 456, 789
%globals_user_assetid% = 147
Conditional statement I’m using:
%begin_asset_write_permission_assetid^explode:,^in_array:{globals_user_assetid}%
"User is in write permission array."
%else_asset%
"User is not in write permission array."
%end_asset%
This returns true, which is incorrect. However, if I hardcode the user id it works as expected:
%begin_asset_write_permission_assetid^explode:,^in_array:147%
"User is in write permission array."
%else_asset%
"User is not in write permission array."
%end_asset%
(This returns false, which is correct.)
Am I doing something incorrectly, or is this not possible? I looked at Using Keyword Replacement Values as Modifier Arguments but couldn’t see how to use it here.
Use case
I have 10 different groups of approvers, and an asset list that displays all the assets awaiting approval. (Approvers will often have multiple assets to approve and this is designed to help them keep track of them all.)
Rather than making 10 identical asset lists with different permissions for each approver group, I’d hoped that I could use the above in the asset list type format to only show approvers the assets they have access to action — ie. if they are logged in and have write access on the current asset, they have the ability to action it.