We have a conditional display that shows the content to users that are Administrators and another custom role called Ride Leaders.
I'm getting some VERY strange behavior on this that I can't figure out. We previously had a support ticket for this same functionality here:
https://toolset.com/forums/topic/role-based-conditional-display-not-working-for-one-of-the-two-roles/
I checked everything from that ticket and we have things set up properly from what was discussed in that ticket.
But what we're seeing is that one user account with a Ride Leader role can see the content, but at least two other user accounts with the Ride Leader role cannot see the content. That doesn't make sense to me at all. The Ride Leader role is the primary role for each of these. I have no idea why it would work fine on at least one of them but not work on others. I haven't used any other user accounts for testing, but I'd guess that some Ride Leaders can see the content while others can't.
Hi there,
Would you please check if the user that can see the content, has also other roles that might allow it to have more information?
Usually, the issue happens when the user contains multiple roles.
You will need to find something that is different between a working and non-working user so that we get a clue what might be the cause of the issue.
You can unassign the other roles from non-working user and see if it fixes problem, if yes, then re-assign the other roles to know which one is causing the issue,.
Thanks.
The user that can see the content does not have another role to allow it to see the info where the other person does not. In fact, one account that cannot see the content actually has BOTH roles that are checked for with the conditional and still can't see it. I've confirmed this by logging in on her account on my end. That's why I'm stumped now because I'm not seeing anything set up incorrectly that would explain this.
In all cases, I've made sure that the Ride Leader role is the primary role for all Ride Leader users. That worked previously to get this content visible for Ride Leaders, but I'm now seeing it evidently didn't solve it for everyone.
One of the two users that couldn't see the content did NOT have the Ride Leader role, but did have the Administrator role. I added the Ride Leader role for her and made it the primary role and asked her to recheck if she can see the content now. If she does, the problem will be solved for her. We'll call her "Not Working User #1" for this discussion. But she did have the Administrator role, so the conditional should have allowed her access to the content already based on that. But if adding the Ride Leader role gets it working for her, I won't argue with that success even though something is still wrong in that she wasn't seeing it as an Administrator.
I looked at an account where it works which I'll call "Working User" and the second account where it doesn't work and I'm not seeing any differences there. It is *possible* that this user didn't log in though. Let me investigate deeper into her account. We'll call her "Not Working User #2" for this discussion to keep everything straight. Working User and Not Working User #2 have the same role assignments and nothing else different that I can see. I'm baffled by this. I haven't logged in as Not Working User #2 yet myself. I'll need to do that to confirm everything before having you assist further with her situation. I've notified her that I need to log in on her account myself and am awaiting her OK on that. She's the President of the club, but we do not have her as an Administrator on the site because she's not one that requires access to the Dashboard.
So more on this for you shortly.
OK, what I did for Not Working User #1 did work. She's now able to see the content. Adding the Ride Leader role and making that the primary role solved it. That still doesn't explain why having the Administrator role wasn't enough to meet the criteria of the conditional, but it's working for her now, so I can let that one go until we run across someone else that is unable to see the content.
For Not Working User #2, I have now logged in on her account and I am seeing the content as it should be. So no problem there. So I now have to figure out why she isn't seeing it on her end. She did say she was logged in, so I'm not sure how that's the case. More on this later. I'm going to have to have her log on while I'm on the phone with her and walk through everything to make sure she's looking in the right place.
Not Working User #2 now reports that she can see the content. So it either magically started working for her now or she wasn't logged in before. I suppose it is possible that resaving her user account may have also done something.
Regardless, this one is working now. Thanks!