Jump to content
Sign in to follow this  
daithi

Admin Access With Levels - Administrators 1.5.1

Recommended Posts

hi all,

does anyone know how i add extra pages to what admins can access using the above contrib?

 

the contrib changes your admi/includes/column_left.php to:

 

//Administrators start

if (CanShowBox('configuration.php')) { include(DIR_WS_BOXES . 'configuration.php'); };

if (CanShowBox('modules.php')) { require(DIR_WS_BOXES . 'modules.php'); };

if (CanShowBox('catalog.php')) { require(DIR_WS_BOXES . 'catalog.php'); };

if (CanShowBox('customers.php')) { require(DIR_WS_BOXES . 'customers.php'); };

if (CanShowBox('taxes.php')) { require(DIR_WS_BOXES . 'taxes.php'); };

if (CanShowBox('localization.php')) { require(DIR_WS_BOXES . 'localization.php'); };

if (CanShowBox('reports.php')) { require(DIR_WS_BOXES . 'reports.php'); };

if (CanShowBox('tools.php')) { require(DIR_WS_BOXES . 'tools.php'); };

if (CanShowBox('administrators.php')) { require(DIR_WS_BOXES . 'administrators.php'); };

//Administrators end

?>

 

but now that i have added more contribs I need to expand on this list and using the same format to add the php files doesn't work - any ideas?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×