Changeset 11214


Ignore:
Timestamp:
06/02/11 22:22:15 (8 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

Location:
extensions/Comments_Access_Manager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_Access_Manager/changelog.txt

    r11208 r11214  
    1212      2.2.4 - Bug fixed : Installation from scratch error. 
    1313              Bug fixed : If "Comments for all" is disabled and a specified group of users can post comments without admin validation, the administrator had to still validate them. 
     14       
     15      2.2.5 - Bug fixed : Validation was always need even if "Validation" option was unset. 
  • 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 
  • extensions/Comments_Access_Manager/main.inc.php

    r11208 r11214  
    22/* 
    33Plugin Name: Comments Access Manager 
    4 Version: 2.2.4 
     4Version: 2.2.5 
    55Description: Gérer l'accès aux commentaites - Manage comments access 
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=545 
Note: See TracChangeset for help on using the changeset viewer.