Allow to hide menus with globals permissions. Fix: 940
This commit is contained in:
parent
613a6fb1f0
commit
ead7bbf9dd
3 changed files with 33 additions and 22 deletions
|
|
@ -277,12 +277,12 @@ defaultRoles:
|
|||
name: Global Master
|
||||
admin: true
|
||||
description: All permissions
|
||||
permissions: [rebuildPermissions, createJavascriptWithROAccess, displayManageUsers, manageBlacklist, manageSettings, setupAutomation]
|
||||
permissions: [rebuildPermissions, createJavascriptWithROAccess, manageUsers, manageBlacklist, manageSettings, setupAutomation]
|
||||
rootNamespaceRole: master
|
||||
campaignsAdmin:
|
||||
name: Campaigns Admin
|
||||
description: Under the namespace in which the user is located, the user has all permissions for managing lists, templates and campaigns and the permission to send to send configurations.
|
||||
permissions: [setupAutomation]
|
||||
permissions: [setupAutomation, manageLists, manageChannels, manageTemplates, manageCampaigns, manageReports, manageApi, manageSendConfigurations, manageNamespaces]
|
||||
ownNamespaceRole: campaignsAdmin
|
||||
campaignsAdminWithoutNamespace:
|
||||
name: Campaigns Admin (multiple namespaces)
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ async function getAuthenticatedConfig(context) {
|
|||
user: {
|
||||
id: context.user.id,
|
||||
username: context.user.username,
|
||||
namespace: context.user.namespace
|
||||
namespace: context.user.namespace,
|
||||
admin: (config.roles.global[context.user.role]["admin"] || false)
|
||||
},
|
||||
globalPermissions,
|
||||
editors: config.editors,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue