Skip to content
Snippets Groups Projects
Commit 66576708 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 2823cec4
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment