...
Codeblock |
---|
admin_role.values[] = ""
admin_role.values[] = "employee"
admin_role.values[] = "shipping_company"
admin_role.value. = "Super Admin"
admin_role.value.employee = "Employee"
admin_role.value.shipping_company = "Shipping company" |
Employees
Employees should be able to:
...
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
user.query = entrytype='shipping_company' or entrytype='employee' or entrytype='customer' |
Representatives of shipping companies
...
Codeblock |
---|
gui.areas = ShowUser EditUser ListUsers CreateUser ListChannels ListVChannels NewsletterArchive SendNewsletter NewsletterQueue attr.entrytype.values = truck customer area.SendNewsletter.EditTags = false |
Login Mode: internal
So far, we have logged-in against the “user database” defined in a config file:
env/devel/cmsbs-conf/conf.d/devel.login.properties
:
Codeblock |
---|
cmsbs.gui.login = "config"
cmsbs.gui.user.1 = "admin:admin:Admin-User:de:" |
...
user.query = entrytype='truck' or entrytype='customer' |
Symlink Admin Roles
And again we have to comment in the other line in our build.gradle
:
Codeblock | ||
---|---|---|
| ||
fileTree('cmsbs-conf/adminRoles', entryTypes').each {target -> ln(target, new File(pinuts.um.cmsbsConfDir, 'entryTypes') ln) } fileTree('cmsbs-conf/entryTypes', adminRoles').each {target -> ln(target, new File(pinuts.um.cmsbsConfDir, 'adminRoles')) |
...
} |
Create Admin Entry
Next, we’ll have to create at least one initial admin user to be able to login again:
...