Commit f7612eab authored by webchick's avatar webchick

Issue #1920278 by dawehner, greggles: Indicate that "administer views" and...

Issue #1920278 by dawehner, greggles: Indicate that "administer views" and "access all views" is kind of a big deal by making it "restrict access" -> true.
parent 73f39734
......@@ -271,17 +271,14 @@ function views_preprocess_comment(&$vars) {
}
/**
* Implement hook_permission().
* Implements hook_permission().
*/
function views_permission() {
return array(
'administer views' => array(
'title' => t('Administer views'),
'description' => t('Access the views administration pages.'),
),
'access all views' => array(
'title' => t('Bypass views access control'),
'description' => t('Bypass access control when accessing views.'),
'restrict access' => TRUE,
),
);
}
......
......@@ -187,6 +187,19 @@ function views_ui_theme() {
);
}
/**
* Implements hook_permission().
*/
function views_ui_permission() {
return array(
'administer views' => array(
'title' => t('Administer views'),
'description' => t('Access the views administration pages.'),
'restrict access' => TRUE,
),
);
}
/**
* Implements hook_library_info().
*/
......
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