function system_update_7029

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 2274

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.