diff --git a/core/modules/dblog/dblog.module b/core/modules/dblog/dblog.module index 06fef10..bebf55d 100644 --- a/core/modules/dblog/dblog.module +++ b/core/modules/dblog/dblog.module @@ -1,4 +1,4 @@ -' . t('The Database Logging module allows you to view an event log on the Recent log messages page. The log is a chronological list of recorded events containing usage data, performance data, errors, warnings and operational information. Administrators should check the log on a regular basis to ensure their site is working properly.', array(':dblog' => \Drupal::url('dblog.overview'))) . ''; $output .= '
' . t('Debugging site problems') . '
'; $output .= '
' . t('In case of errors or problems with the site, the Recent log messages page can be useful for debugging, since it shows the sequence of events. The log messages include usage information, warnings, and errors.', array(':dblog' => \Drupal::url('dblog.overview'))) . '
'; + $output .= '
' . t('Dblog module should not be used for forensic log as they may not work on the following scenarios -') . '
';; + $output .= '
' ; + $output .= '
  • ' . t('It may not help to see logs if site is not accessible.') . '
  • '; + $output .= '
  • ' . t('This module writes logs to database which can slow down the website.') . '
  • '; + $output .= '
    '; + $output .= '
    ' . t('Using syslog or similar logging mechanisms may help to overcome the above said scenarios.') . '
    '; $output .= ''; return $output; diff --git a/core/modules/node/node.permissions.yml b/core/modules/node/node.permissions.yml index f852db7..71c0345 100644 --- a/core/modules/node/node.permissions.yml +++ b/core/modules/node/node.permissions.yml @@ -19,12 +19,13 @@ view own unpublished content: title: 'View own unpublished content' view all revisions: title: 'View all revisions' + description: 'To view a revision, you also need permission to view the content item (but not to edit or delete it).' revert all revisions: title: 'Revert all revisions' - description: 'Role requires permission view revisions and edit rights for nodes in question or administer nodes.' + description: 'To revert a revision, you also need permission to edit the content item (but not to view or delete it).' delete all revisions: title: 'Delete all revisions' - description: 'Role requires permission to view revisions and delete rights for nodes in question or administer nodes.' + description: 'To delete a revision, you also need permission to delete the content item (but not to view or edit it.)' permission_callbacks: - \Drupal\node\NodePermissions::nodeTypePermissions diff --git a/core/modules/node/src/NodePermissions.php b/core/modules/node/src/NodePermissions.php index 94b2d93..532a5a6 100644 --- a/core/modules/node/src/NodePermissions.php +++ b/core/modules/node/src/NodePermissions.php @@ -62,14 +62,15 @@ protected function buildPermissions(NodeType $type) { ), "view $type_id revisions" => array( 'title' => $this->t('%type_name: View revisions', $type_params), + 'description' => t('To view a revision, you also need permission to view the content item (but not to edit or delete it).'), ), "revert $type_id revisions" => array( 'title' => $this->t('%type_name: Revert revisions', $type_params), - 'description' => t('Role requires permission view revisions and edit rights for nodes in question, or administer nodes.'), + 'description' => t('To revert a revision, you also need permission to edit the content item (but not to view or delete it).'), ), "delete $type_id revisions" => array( 'title' => $this->t('%type_name: Delete revisions', $type_params), - 'description' => $this->t('Role requires permission to view revisions and delete rights for nodes in question, or administer nodes.'), + 'description' => $this->t('To delete a revision, you also need permission to delete the content item (but not to view or edit it).'), ), ); }