Hello Pedu,
Vendors should only be able to see their own reports. Vendors have to select their products in a form to see their reports.
But my problem is that, vendors are able to select products that are not theirs, therefore, they can see the statistics/reports of other vendors, and i don't want this to happen.
I have been told by one of your collegues this statement :
Vendor id is necessary to save to session $_SESSION['com_vmreports']['vendor']
But i still don't know what to do.
Do you understand the problem a bit better now ?