Ignore:
Timestamp:
Jun 2, 2011, 10:22:15 PM (13 years ago)
Author:
Eric
Message:

Bug fixed : Validation was always need even if "Validation" option was unset.
New version 2.2.5 hard coded for publication

File:
1 edited

Legend:

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

    r11208 r11214  
    5252    }
    5353   
    54     if ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and !is_a_guest())
     54    if ((isset($conf_CM[6]) and $conf_CM[6] == 'true') and !is_a_guest() and $conf['comments_validation'])
    5555    {
    5656      if (CM_CheckValidGroup($comm['author']) or is_admin())
     
    7575    elseif ((isset($conf_CM[2]) and $conf_CM[2] == 'false') and (isset($conf_CM[4]) and $conf_CM[4] == 'true') and $conf['comments_validation']) // Comments authorized group unset - Auto validation group set
    7676    {
    77       if (CM_CheckValidGroup($comm['author']))
     77      if (CM_CheckValidGroup($comm['author']) and $conf['comments_validation'])
    7878      {
    7979        $comment_action = 'validate'; // Comment is validated if author is not in the validated group
     
    9191        array_push($infos, l10n('CM_Not_Allowed_Author'));
    9292      }
    93       elseif (CM_CheckValidGroup($comm['author']))
     93      elseif (CM_CheckValidGroup($comm['author']) and $conf['comments_validation'])
    9494      {
    9595        $comment_action = 'validate'; // Comment is validated if author is not in the validated group
Note: See TracChangeset for help on using the changeset viewer.