{
post_type: [
{
key: 'edit',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_create_or_edit').to_s,
color: 'success',
description: I18n.t('camaleon_cms.admin.users.tool_tip.create_or_edit').to_s
},
{
key: 'edit_other',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_edit_other').to_s,
color: 'success',
description: I18n.t('camaleon_cms.admin.users.tool_tip.edit_other').to_s
},
{
key: 'edit_publish',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_edit_publish').to_s,
color: 'success',
description: I18n.t('camaleon_cms.admin.users.tool_tip.edit_publish').to_s
},
{
key: 'publish',
label: I18n.t('camaleon_cms.admin.users.roles_values.publish').to_s,
color: 'success',
description: I18n.t('camaleon_cms.admin.users.tool_tip.publish').to_s
},
{
key: 'delete',
label: I18n.t('camaleon_cms.admin.button.delete').to_s,
color: 'danger',
description: I18n.t('camaleon_cms.admin.users.tool_tip.delete').to_s
},
{
key: 'delete_other',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_delete_other').to_s,
color: 'danger',
description: I18n.t('camaleon_cms.admin.users.tool_tip.delete_other').to_s
},
{
key: 'delete_publish',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_delete_publish').to_s,
color: 'danger',
description: I18n.t('camaleon_cms.admin.users.tool_tip.delete_publish').to_s
},
{
key: 'manage_categories',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_manage_categories').to_s,
color: 'warning',
description: I18n.t('camaleon_cms.admin.users.tool_tip.manage_categories').to_s
},
{
key: 'manage_tags',
label: I18n.t('camaleon_cms.admin.users.roles_values.html_manage_tags').to_s,
color: 'warning',
description: I18n.t('camaleon_cms.admin.users.tool_tip.manage_tags').to_s
},
{
key: 'post_content_unfiltered_html',
label: I18n.t('camaleon_cms.admin.users.roles_values.post_content_unfiltered_html',
default: 'Allow unfiltered HTML in post content').to_s,
color: 'danger',
description: I18n.t('camaleon_cms.admin.users.tool_tip.post_content_unfiltered_html',
default: 'Permit users with this role to save raw/unfiltered HTML in post content').to_s
}
],
manager: [
{
key: 'media',
label: I18n.t('camaleon_cms.admin.users.roles_values.media').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.media').to_s
},
{
key: 'comments',
label: I18n.t('camaleon_cms.admin.users.roles_values.comments').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.comments').to_s
},
{
key: 'themes',
label: I18n.t('camaleon_cms.admin.users.roles_values.themes').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.themes').to_s
},
{
key: 'widgets',
label: I18n.t('camaleon_cms.admin.sidebar.widgets').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.widgets').to_s
},
{
key: 'nav_menu',
label: I18n.t('camaleon_cms.admin.sidebar.menus').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.menus').to_s
},
{
key: 'plugins',
label: I18n.t('camaleon_cms.admin.sidebar.plugins').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.plugins').to_s
},
{
key: 'users',
label: I18n.t('camaleon_cms.admin.sidebar.users').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.users').to_s
},
{
key: 'settings',
label: I18n.t('camaleon_cms.admin.sidebar.settings').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.settings').to_s
},
{
key: 'custom_fields',
label: I18n.t('camaleon_cms.admin.sidebar.custom_fields', default: 'Custom Fields').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.custom_fields',
default: 'Manage custom field groups and fields, including the select_eval type.').to_s
},
{
key: 'select_eval',
label: I18n.t('camaleon_cms.admin.custom_field.select_eval', default: 'Select Eval').to_s,
description: I18n.t(
'camaleon_cms.admin.users.tool_tip.select_eval',
default: 'Allow toggling and using select_eval custom fields in the admin UI.'
).to_s
},
{
key: 'theme_settings',
label: I18n.t('camaleon_cms.admin.settings.theme_setting', default: 'Theme Settings').to_s,
description: I18n.t('camaleon_cms.admin.users.tool_tip.themes').to_s
},
{
key: 'contact_form_unfiltered_html',
label: I18n.t('camaleon_cms.admin.users.roles_values.contact_form_unfiltered_html',
default: 'Allow unfiltered HTML in contact forms').to_s,
color: 'danger',
description: I18n.t(
'camaleon_cms.admin.users.tool_tip.contact_form_unfiltered_html',
default: 'Permit users with this role to save raw/unfiltered HTML anywhere in a contact form: the ' \
'markup wrapping a form, field labels, descriptions, templates, CSS classes, default ' \
'values, custom attributes, option labels and response messages. Without it, a save ' \
'carrying such content is refused rather than cleaned up. Distinct from the per-post-type ' \
'"Allow unfiltered HTML in post content" permission.'
).to_s
},
{
key: 'media_unfiltered_upload',
label: I18n.t('camaleon_cms.admin.users.roles_values.media_unfiltered_upload',
default: 'Allow unscanned media uploads').to_s,
color: 'danger',
description: I18n.t(
'camaleon_cms.admin.users.tool_tip.media_unfiltered_upload',
default: 'Permit users with this role to upload files without the malicious-content scan. Without ' \
'it, every upload is scanned whatever its source, and a file carrying scripts, event ' \
'handlers, blocked elements or blocked URI schemes is refused rather than cleaned up. ' \
'Uploaded files are served from the site origin, so this grants the ability to publish ' \
'active content there. Site-wide, unlike the per-post-type "Allow unfiltered HTML in post ' \
'content" permission.'
).to_s
}
]
}.freeze