Hi Tuan,
I have been having a problem with ACL where I want to show text for all plans, except plans 1, 3 or 4. So I have coded the text as follows:
{mprestriction ids="!1,3,4"}Members can access the Annual Financial Statements by logging in and returning to this menu.{/mprestriction}
but it doesn't work.
I have had a look at the code in plugins/content/mprestriction/mprestriction.php and it appears to me (and I could be totally wrong) that line 130:
if (!count(array_intersect($requiredPlanIds, $activePlanIds)))
should be:
if (count(array_intersect($requiredPlanIds, $activePlanIds))==0)
as I don't think the php ! operator works in that situation.
Please let me know. I have made the change and it then does work correctly.
Regards,
Bill