You are here

function system_update_7029 in Drupal 7

Add new 'view own unpublished content' permission for authenticated users. Preserves legacy behavior from Drupal 6.x.

Related topics

File

modules/system/system.install, line 2255
Install, update and uninstall functions for the system module.

Code

function system_update_7029() {
  db_insert('role_permission')
    ->fields(array(
    'rid' => DRUPAL_AUTHENTICATED_RID,
    'permission' => 'view own unpublished content',
  ))
    ->execute();
}