Commit 2343769e authored by jpstrikesback's avatar jpstrikesback Committed by Chris Johnson

Issue #1785668 by jpstrikesback and itaine: Access Check / Permissions for...

Issue #1785668 by jpstrikesback and itaine: Access Check / Permissions for 'Use context editor dialog' - ensured configure layouts contextual link only shows for users with permissions to administer contexts
parent 4f454934
......@@ -367,7 +367,7 @@ function context_ui_page_alter(&$page) {
*/
function context_ui_menu_contextual_links_alter(&$links, $router_item, $root_path) {
if(context_ui_dialog_is_enabled() &&
!context_isset('context_ui', 'context_ui_editor_present')) {
!context_isset('context_ui', 'context_ui_editor_present') && user_access('administer contexts')) {
$links['layout'] = array(
'href' => 'context-ui/activate',
'title' => t('Configure Layout'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment