X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fediter_mots.php;fp=www%2Fecrire%2Finc%2Fediter_mots.php;h=b90b8396dcd71385a395a0b6a430bc94d4cf9fad;hp=4b8ed87b7ce8ab717327d0e5e85203ce005a8d2e;hb=e99f0878011913365e49b30d90e496c24c301393;hpb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed diff --git a/www/ecrire/inc/editer_mots.php b/www/ecrire/inc/editer_mots.php index 4b8ed87..b90b839 100644 --- a/www/ecrire/inc/editer_mots.php +++ b/www/ecrire/inc/editer_mots.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2011 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -252,8 +252,11 @@ function formulaire_mots_cles($id_objet, $les_mots, $table, $table_id, $url_base if (count($les_mots)>= 3) { $ok = true; foreach ($id_groupes_vus as $id_groupe) - $ok &= autoriser('editermots', $objet, $id_objet, null, - array('id_groupe'=>$id_groupe,'groupe_champs'=>$row)); + if (!autoriser('editermots', $objet, $id_objet, null, + array('id_groupe'=>$id_groupe))) { + $ok = false; + break; + } if ($ok) $res .= "
" . ajax_action_auteur('editer_mots', "$id_objet,-1,$table,$table_id,$objet", $url_base, "$table_id=$id_objet", array(_T('info_retirer_mots'),''),"&id_objet=$id_objet&objet=$objet")