Changeset 11204
- Timestamp:
- Jun 1, 2011, 6:54:01 PM (13 years ago)
- Location:
- extensions/Comments_Access_Manager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_Access_Manager/changelog.txt
r11070 r11204 2 2 ** Change log ** 3 3 4 -- 2011-05-235 4 2.2.0 - Initial Release 6 5 7 -- 2011-05-268 6 2.2.1 - Add new feature : Users in a specified group can post comments without admin validation when "Comments for all" is disabled and admin validation is enabled. 9 7 10 -- 2011-05-2611 8 2.2.2 - Add new feature : Users in a specified group can post comments without admin validation when "Comments for all" is enabled and admin validation is enabled. 9 10 2.2.3 - Bug fixed : If "Comments for all" is disabled and guest user uses a nickname already in use, the comment was automatically accepted and validated. -
extensions/Comments_Access_Manager/include/functions.inc.php
r11070 r11204 28 28 29 29 /** 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 33 31 * 34 32 * @param : comment action, comment … … 37 35 * 38 36 */ 39 function CM_CheckComment Author($comment_action, $comm)37 function CM_CheckComment($comment_action, $comm) 40 38 { 41 39 load_language('plugin.lang', CM_PATH); … … 53 51 array_push($infos, l10n('CM_Empty Author')); 54 52 } 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') 56 54 { 57 55 if (CM_CheckValidGroup($comm['author']) or is_admin()) -
extensions/Comments_Access_Manager/main.inc.php
r11070 r11204 2 2 /* 3 3 Plugin Name: Comments Access Manager 4 Version: 2.2. 24 Version: 2.2.3 5 5 Description: Gérer l'accès aux commentaites - Manage comments access 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid= … … 22 22 23 23 // Comments authorisation check 24 add_event_handler('user_comment_check', 'CM_CheckComment Author', 50, 2);24 add_event_handler('user_comment_check', 'CM_CheckComment', 50, 2); 25 25 ?>
Note: See TracChangeset
for help on using the changeset viewer.