diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 8dc5f5a8f79ef4339dabfc29e0c097b2badadf5c..38a857481b67155fdb8477d492b870eabe7c1e4a 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 9d89fdf88a98266f6e2f7c8d7ac1e3c24c542b50..4c3ae9517441d91c828abedc57eec30857adebdc 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(). */