I wrote some client code @Table-specific

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
netenken1
User
Posts: 64

I wrote some client code @Table-specific

Post by netenken1 »

I wrote some client code @Table-specific Start Script block

It's work fine, but it won't work @ "Allow add" function page...

where do I enabled the "Allow add" page with the same client script ??


danielc
User
Posts: 1601

Post by danielc »

You need to modify xxxaddopt.php to add your script.


mobhar
User
Posts: 11790

Post by mobhar »

netenken1 wrote:
where do I enabled the "Allow add" page with the same client
script ??

Not sure what you meant. But if you want to restrict the Add functionality, then you can insert the following code into your "Page_Init()" function:

global $Security, $Language;
$Security = new cAdvancedSecurity();
if (!$Security->CanAdd()) {
$Security->SaveLastUrl();
$this->setFailureMessage($Language->Phrase("NoPermission")); // Set no permission
$this->Page_Terminate("yourtablelist.php"); // redirect to the List page; adjust "yourtable" word with yours
}


Post Reply