Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Page adding error
02-12-2013, 03:12 PM,
New Page adding error
I tried to add a page(test.php) in weberp root directory. When I opened that page in browser, it shows below error

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

Is there any special format, I have to follow to develop new page or plugin in weberp. Or, do I need to give special permission to every page I add in weberp.

Whatever is the reason? Please reply in detail and soon.
02-13-2013, 06:04 AM,
RE: New Page adding error
Hello Mannu87,

All pages are checked in includes/ to see if the user is allowed to access them ...

if (!isset($AllowAnyone)){
    if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) {
        $Title = _('Security Permissions Problem');
        include($PathPrefix . 'includes/');
        echo '<tr>
            <td class="menu_group_items">
                <table width="100%" class="table_index">
                    <tr><td class="menu_group_item">';
        echo '<b><font style="size:+1; text-align:center;">' . _('The security settings on your account do not permit you to access this function') . '</font></b>';

        echo '</td>

        include($PathPrefix . 'includes/');

So the key point:
if ((!in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) {

If you set a variable
$PageSecurity = 1;

Then this is most likely to be in the array of $_SESSION['AllowedPageSecurityTokens'] - this array is read in at login from the users role permissions set up. You can read a bit about the security set up in the Manual.

Alternatively there is an over-ride $AllowAnyone - if this is set before including includes/ then the security checking is turned off.
Phil Daintree
webERP Admin
Logic Works Ltd

Forum Jump:

Users browsing this thread: 1 Guest(s)