Changeset 81269 in spip-zone


Ignore:
Timestamp:
Mar 8, 2014, 9:12:18 AM (5 years ago)
Author:
eric@…
Message:

Correction de l'autorisation modifier commentaire.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/relecture/relecture_autorisations.php

    r81265 r81269  
    335335                $commentaire_ouvert = ($infos['statut'] == 'ouvert');
    336336
    337                 $nb_messages_forum = sql_countsel('spip_forums', array("id_commentaire=$id_commentaire"));
     337                $nb_messages_forum = sql_countsel('spip_forum', array('objet=' . sql_quote('commentaire'), "id_objet=$id_commentaire"));
    338338
    339339                $autorise_modifier_relecture = autoriser('modifier', 'relecture', intval($infos['id_relecture']),$qui, array());
     
    346346                        OR ($autorise_modifier_relecture
    347347                                AND $commentaire_ouvert
    348                                 AND (!$opt OR ($opt['champ'] == 'texte'))));
     348                                AND (!$opt OR ($opt['champ'] == 'reponse'))));
    349349        }
    350350
Note: See TracChangeset for help on using the changeset viewer.