webERP Forum
Creating a new page: security settings blocking me - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: How To ? (http://www.weberp.org/forum/forumdisplay.php?fid=6)
+--- Thread: Creating a new page: security settings blocking me (/showthread.php?tid=8055)



Creating a new page: security settings blocking me - HDeriauFF - 01-18-2018

I uploaded a new php script in the weber directory and followed the manual instruction on how to create a new page but I get the following message:

The security settings on your account do not permit you to access this function

I have full admin privileges in webERP

my code:

Code:
<?php

include('includes/session.php');
$Title = _('Beta Page');

$ViewTopic= 'Inventory';
$BookMark = 'beta feature';
include('includes/header.php');
include('includes/SQL_CommonFunctions.inc');
$ViewTopic = 'SimpleScript';
$BookMark = 'GeneralTopics';
include('includes/header.php');
echo 'hello world';
include('includes/footer.php');
?>


Could someone guide my through the process of making my new page accessible.

Thanks!


RE: Creating a new page: security settings blocking me - falkoner - 01-18-2018

You need to create an entry in the scripts table for your new script.
Alternatively you can hard code the $PageSecurity variable in your script (not a long term solution but helps when you are developing )

Tim


RE: Creating a new page: security settings blocking me - HDeriauFF - 01-18-2018

(01-18-2018, 06:56 AM)falkoner Wrote: You need to create an entry in the scripts table for your new script.
Alternatively you can hard code the $PageSecurity variable in your script (not a long term solution but helps when you are developing )

Tim

thanks! I was done, but the problem was I needed to log out and log back in Big Grin




RE: Creating a new page: security settings blocking me - falkoner - 01-18-2018

Ah yes I wrote it so that the scripts table is only read on login to avoid the delay if reading it on every page refresh.