Restrict Profile based on user login
Hi,
I have requirement to restrict profile based on user login. I have 3 profiles let's name it as Profile A, Profile B and Profile C. I want user with account 'a' only can view profile A and so forth. I refer to this discussion, , and I know, I should check the Restrict Personalization links and enter the code something like this :
<$if userHasAccessToAccount("WCC-DEV",2)$> //1,2,4,8
<$isLinkActive=1$>
<$endif$>
Refer to this code, I don't know what the number 2 indicate to. I try amend this code in Profile A to below:
<$if userHasAccessToAccount("a",2)$> //1,2,4,8
<$isLinkActive=1$>
<$endif$>
However, the Profile A hidden from the list. By right, if user have account 'a', only the Profile A should display in the list and Profiel B and C must hidden.