In this section we want to introduce Admin Roles to provide our different backend users with role-based permissions.
We have three different user roles:
Super admin users,
employees and
representatives of partnering shipping companies.
Define admin roles
cmsbs-conf/conf.d/admin_role.attributes
:
Codeblock |
---|
admin_role.values[] = ""
admin_role.values[] = "employee"
admin_role.values[] = "shipping_company" |
Employees
Employees should be able to:
View, edit and create Entries (shipping companies, employees and customers),
view, edit and create Lists (aka Channels),
view existing Segments (aka VChannels) and
send Newsletters.
cmsbs-conf/adminRoles/role_employee.properties
:
Codeblock |
---|
gui.areas = ShowUser EditUser ListUsers CreateUser ListChannels EditChannels ListVChannels NewsletterArchive SendNewsletter NewsletterQueue
attr.entrytype.values = shipping_company employee customer
area.CreateUser.employee = false
area.EditChannels.EditTags = false
area.SendNewsletter.EditTags = false |
Representatives of shipping companies
Representatives or partnering shipping companies should be able to:
View, edit and create Entries (trucks and customers),
view existing Lists and Segments (aka Channels and VChannels) and
send Newsletters.
cmsbs-conf/adminRoles/role_shipping_company.properties
:
Codeblock |
---|
gui.areas = ShowUser EditUser ListUsers CreateUser ListChannels ListVChannels NewsletterArchive SendNewsletter NewsletterQueue
attr.entrytype.values = truck customer
area.SendNewsletter.EditTags = false |
Codeblock |
---|
(cd UM/scripts && ./userTool.sh cmsbs.properties -admin) |
...