I am trying to write a security rule that can restrict certain apps to be displayed in the stream.
I have a stream called TEST in this stream i have two apps, 1.AppleDashboard 2. OrangeDashboard
I have created a custom property as @Products and it has two values, 1. Apple 2. Orange
I have assigned a custom property for both these dashboards as below.
AppleDashboard - has a custom property value as Apple
OrangeDashboard - has a custom property value as Orange
I have a user as testuser1 - for this user i have assigned the same customer property @Products with the value as Apple.
I have another user as testuser2 - for this user i have assigned the same customer property @Products with the value as Orange.
so when testuser1 logs in - he should see only AppleDashboard in the stream TEST
when testuser2 logs in - he should see only OrangeDashboard in the stream TEST
Both these dashboard have to be published in one stream only. I cannot publish them in different streams.
So in the stream security rule, how should i write the condition so that if one of the app is available for a user then it should display the stream and only the app that the user should access.
i have tried the below conditions and to no solution.
Could someone please explain as to how the security rule should be written to have a sub stream level security.