check from custom front php page if its executed by cms admin or cms admin is logged in
I'm creating a simple custom plugin by putting a custom "print" link in the section records row to preview and/or print the custom page with all the fields of each record.
In this custom frontend php page I want to put a security check to see if the page is opened by the cms admin.
I'm using separated cms user table and members tables with the membership plugin.
Any help would be appreciated,