Commit 3e34d843 authored by alexpott's avatar alexpott
Browse files

Issue #2283717 by amitgoyal, joshi.rohit100, g3r4 | jackbravo: Remove...

Issue #2283717 by amitgoyal, joshi.rohit100, g3r4 | jackbravo: Remove user_access function calls on hook_permission functions.
parent 41c64026
......@@ -1951,9 +1951,7 @@ function file_permission() {
$perms = array(
'access files overview' => array(
'title' => t('Access the Files overview page'),
'description' => user_access('access files overview')
? t('Get an overview of <a href="@url">all files</a>.', array('@url' => url('admin/content/files')))
: t('Get an overview of all files.'),
'description' => t('Get an overview of <a href="!url">all files</a>.', array('!url' => url('admin/content/files'))),
),
);
......
......@@ -709,9 +709,7 @@ function node_permission() {
),
'access content overview' => array(
'title' => t('Access the Content overview page'),
'description' => user_access('access content overview')
? t('Get an overview of <a href="@url">all content</a>.', array('@url' => url('admin/content')))
: t('Get an overview of all content.'),
'description' => t('Get an overview of <a href="!url">all content</a>.', array('!url' => \Drupal::url('system.admin_content'))),
),
'access content' => array(
'title' => t('View published content'),
......
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