Commit 66576708 authored by Dries's avatar Dries

- Patch #51347 by eafarris: fixed typo: coment -> comment.

parent 2823cec4
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment