Ignore:
Timestamp:
Jun 1, 2011, 6:54:01 PM (13 years ago)
Author:
Eric
Message:

Bug fixed : If "Comments for all" is disabled and guest user uses a nickname already in use, the comment was automatically accepted and validated.
New version 2.2.3 hard coded for publication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_Access_Manager/include/functions.inc.php

    r11070 r11204  
    2828
    2929/**
    30  * checks if author is mandatory and set on comments post when comments for all is set
    31  *
    32  * cheks if author is in an allowed group to post comment when comments for all is not set
     30 * Check comment rules set in plugin before accepting it
    3331 *
    3432 * @param : comment action, comment
     
    3735 *
    3836 */
    39 function CM_CheckCommentAuthor($comment_action, $comm)
     37function CM_CheckComment($comment_action, $comm)
    4038{
    4139  load_language('plugin.lang', CM_PATH);
     
    5351      array_push($infos, l10n('CM_Empty Author'));
    5452    }
    55     elseif ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and $comm['author'] != 'guest')
     53    elseif ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and !$comm['author'] == 'guest')
    5654    {
    5755      if (CM_CheckValidGroup($comm['author']) or is_admin())
Note: See TracChangeset for help on using the changeset viewer.