summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment.module2
-rw-r--r--modules/comment/comment.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module
index ecf68f95c..a1216b0e0 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -529,7 +529,7 @@ function comment_reply($nid, $pid = NULL) {
*/
function comment_save($edit) {
global $user;
- if (user_access('post comments') && (user_access('administer coments') || node_comment_mode($edit['nid']) == COMMENT_NODE_READ_WRITE)) {
+ if (user_access('post comments') && (user_access('administer comments') || node_comment_mode($edit['nid']) == COMMENT_NODE_READ_WRITE)) {
if (!form_get_errors()) {
// Check for duplicate comments. Note that we have to use the
// validated/filtered data to perform such check.
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index ecf68f95c..a1216b0e0 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -529,7 +529,7 @@ function comment_reply($nid, $pid = NULL) {
*/
function comment_save($edit) {
global $user;
- if (user_access('post comments') && (user_access('administer coments') || node_comment_mode($edit['nid']) == COMMENT_NODE_READ_WRITE)) {
+ if (user_access('post comments') && (user_access('administer comments') || node_comment_mode($edit['nid']) == COMMENT_NODE_READ_WRITE)) {
if (!form_get_errors()) {
// Check for duplicate comments. Note that we have to use the
// validated/filtered data to perform such check.