From f7612eab1bcd6bca9de485cd97e534b5ea9a54c5 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Wed, 27 Feb 2013 16:56:29 -0500 Subject: [PATCH] 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. --- core/modules/views/views.module | 7 ++----- core/modules/views/views_ui/views_ui.module | 13 +++++++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 8dc5f5a8f79e..38a857481b67 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -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, ), ); } diff --git a/core/modules/views/views_ui/views_ui.module b/core/modules/views/views_ui/views_ui.module index 9d89fdf88a98..4c3ae9517441 100644 --- a/core/modules/views/views_ui/views_ui.module +++ b/core/modules/views/views_ui/views_ui.module @@ -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(). */ -- GitLab