|
Objective: By creating
additional permissions in IMS
system, you allow specific users
to access only specific areas of
your Administration area of your
IMS system. You can assign
permissions to access the module
itself such as Product, Store,
Orders, Taxes, Shipping…and you
can also assign permissions to the
functions within each module. You
have full control of your IMS
system.
First you have to know that IMS
system comes with the following
permissions:
Admin:
It is probably the best to have
just one admin account. Change the
password on a regular basis.
Access to all parts of the admin
area.
Ability to add users and change
passwords for all users.
Ability to change/set permissions
on modules and functions
(Caution!)
Ability to add modules and
functions (Caution !)
Storeadmin:
Access to all parts of the admin
area except the admin module
itself.
Ability to add users and change
passwords for storeadmin, shopper
and demo.
Shopper:
Access only to the shop.
Ability to view their orders and
change personal, edit account
information and add shipping
addresses.
Demo:
For demonstration purposes only.
Access limited parts of the admin
area.
No permissions for admin
functions.
Also we created additional ones
for specific use: Reseller,
Affiliate, Hotel and Tour.
Second, you need to create the new
permission itself. As example you
can create “level1” as a new
permission. You need to update a
PHP file located on your Webserver
at
….imscart/inc/modules/admin/lib/ps_perm.inc.
Warning:
Take a backup copy of that file
before modifying it. Notepad is a
good tool for this because there
is no formatting code generated.
Where you have
class
ps_perm {
var $permissions = array(
"shopper" => "1",
"hotel" => "2",
"reseller" => "3",
"demo" => "4",
"storeadmin" => "5",
“level1” => “6”,
"admin" => "8"
);
just add the new permission “level1”
with a number and save the file.
Third, you have to modify another
PHP file to allow each new user
with the new permission to access
the admin area by clicking on the
“admin” link on top blue bar. To
do this you go to your Admin area,
click Admin, then Edit pages,
select “topmenu and click SUBMIT
to modify the page.
Where you have:
if
($perm->check("admin,storeadmin,hotel,demo,level1"))
{ ?>
<a class="topnavlinks" href="<?php
$sess->purl(SECUREURL .
"?page=order/index"); ?>">
<? echo $administration_title;
?></a> <img src="shop_image/ps_image/wdot2.gif"
border="0" width="2" height="10">
<? } ?>
simply add the new permission “level1”
in the first line with the other
permissions are listed and save
the page.
Fourth, you need to create the new
user and in the permission drop
down list, you will now see
“level1” that can be assigned to
the new user.
Fifth, click Admin and List
modules (left border). You will
see the listing of all modules
with permissions.
If you want your new user to
access only Store and Products,
you have to add the new permission
“level1” to the above module. You
must also add your new permission
to these 2 modules to make this
work: Orders and Account.
As example, Store can be accessed
by: admin,storeadmin,demo . Click
on the link Store in the Module
Name field and add "level1" in the
Module Perms input box. Save the
form.
Then do a test with the new user
name.
Do the same with the others
modules.
The IMS system needs every user to
access "Orders". But you can stop
your new user to use the functions
under "Orders" that are in the
left menu. How to do this?
In the Admin area, Admin and List
modules, click on the "functions"
link on the same line as Order to
view each function and their perm.
Then you make sure that the new
permission is not listed for each
function.
|