summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-05 06:17:29 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-05 06:17:29 +0000
commit5d76008993fc7edc5d4c1aedba8af81b36d1554e (patch)
treeb3d5b4ec8d296f326330d1eb5bef31af66821fd9 /modules/user
parente4c0766ca4cb88cf742989f924f414de354f69cb (diff)
downloadbrdo-5d76008993fc7edc5d4c1aedba8af81b36d1554e.tar.gz
brdo-5d76008993fc7edc5d4c1aedba8af81b36d1554e.tar.bz2
#438224 by dww, sun, netsensei, vordude, et al: 'Post comments without approval' permission name is completely misleading.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.install14
-rw-r--r--modules/user/user.test2
2 files changed, 15 insertions, 1 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 00afd2dc0..9d5256e62 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -824,6 +824,20 @@ function user_update_7013(&$sandbox) {
}
/**
+ * Rename the 'post comments without approval' permission.
+ *
+ * In Drupal 7, this permission has been renamed to 'skip comment approval'.
+ */
+function user_update_7014() {
+ db_update('role_permission')
+ ->fields(array('permission' => 'skip comment approval'))
+ ->condition('permission', 'post comments without approval')
+ ->execute();
+
+ return t("Renamed the 'post comments without approval' permission to 'skip comment approval'.");
+}
+
+/**
* @} End of "defgroup user-updates-6.x-to-7.x"
* The next series of updates should start at 8000.
*/
diff --git a/modules/user/user.test b/modules/user/user.test
index cbde24b71..91549f0de 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -571,7 +571,7 @@ class UserCancelTestCase extends DrupalWebTestCase {
variable_set('user_cancel_method', 'user_cancel_delete');
// Create a user.
- $account = $this->drupalCreateUser(array('cancel account', 'post comments', 'post comments without approval'));
+ $account = $this->drupalCreateUser(array('cancel account', 'post comments', 'skip comment approval'));
$this->drupalLogin($account);
// Load real user object.
$account = user_load($account->uid, TRUE);