Hide Page based on Role

Hi
I'm trying to hide a page on the sidebar based on role of user. This syntax generates errors and I'm not sure what the correct syntax should be. Help would be appreciated.

On the Visible property I set this: ${Security.User.RoleNames.Contains("Admin");} but this seems wrong and build fails.

Thanks
Mike

Hi @Mikec,

The correct syntax should be as per our documentation: ${Security.IsInRole("Sales")}:

Nice, that works perfectly. Pity the search term "hide page" isn't getting a hit in the doc search or forum (although forum will have it now :-))
Thanks for quick response.