diff options
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 3062a58fd..c1ab41c16 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -407,7 +407,7 @@ function system_install() { )); // Authenticated role permissions. - foreach (array('access comments', 'access content', 'post comments', 'post comments without approval') as $permission) { + foreach (array('access comments', 'access content', 'post comments', 'post comments without approval', 'view own unpublished content') as $permission) { $query->values(array( 'rid' => DRUPAL_AUTHENTICATED_RID, 'permission' => $permission, @@ -2226,6 +2226,21 @@ function system_update_7028() { } /** + * Add new 'view own unpublished content' permission for authenticated users. + * Preserves legacy behavior from Drupal 6.x. + */ +function system_update_7029() { + $ret = array(); + db_insert('role_permission') + ->fields(array( + 'rid' => DRUPAL_AUTHENTICATED_RID, + 'permission' => 'view own unpublished content', + )) + ->execute(); + return $ret; +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |