Please note I am trying to hide a section in a program stage based on the logged on users role/group. I am looking for a variable for this purpose, such as V{current_date} to set the program rule but I could not find.
Can anyone kindly assist me? Your help is very much appreciated.
Please note I have used the below rule to hide a section but it does not hide the section:
!(d2:hasUserRole(‘EWAdOcRwzFN’))
I have actually copy pasted the “uid” from the DB to avoid spelling mistakes. I cleared the cache a couple of times, used a different browser but in vain. Do you see anything wrong in my rule?
*Just to make it clear, I want to hide the section for all other roles.
BTW, We are using DHIS2 Version 2.29, Build 0b4de69.
Sorry. In double checking, the function is not found in documentation before 2.31. And, it works in Play 2.31 but not Play 2.29 (below, see last warning)
@Shurajit_Dutta , @Markus
I am not sure you can deny access to programstage sections, and hiding metadata does not help much. Any work around, you can suggest for @MSP