Changeset 10005 in spip-zone


Ignore:
Timestamp:
Feb 28, 2007, 10:56:21 PM (14 years ago)
Author:
cedric@…
Message:

"d'autres petits oups (le chemin est encore long vers le 10N suivant)"

Location:
_plugins_/_stable_/forms/forms_et_tables_1_9_1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/forms/forms_et_tables_1_9_1/balise/forms.php

    r9900 r10005  
    6060                AND
    6161                (!$id_donnee
    62                 OR autoriser('modifier',(in_array($type_form,array('','sondage'))?'form':$type_form).'_donnee',$id_donnee));
     62                OR autoriser('modifier','donnee',$id_donnee,NULL,array('id_form'=>$id_form)));
    6363        $formactif = $formactif?' ':'';
    6464
  • _plugins_/_stable_/forms/forms_et_tables_1_9_1/forms_options.php

    r9999 r10005  
    8989        $result = spip_query("SELECT * FROM spip_forms WHERE id_form="._q($id_form));
    9090        if (!$row = spip_fetch_array($result)) return false;
     91        include_spip('inc/forms');
    9192        $dejareponse=Forms_verif_cookie_sondage_utilise($id_form);
    9293        global $auteur_session;
     
    119120}
    120121function autoriser_table_donnee_creer_dist($faire, $type, $id_donnee, $qui, $opt) {
    121         return autoriser_form_donnee_creer($faire, $type, $id_donnee, $qui, $opt);
     122        return autoriser_form_donnee_creer_dist($faire, $type, $id_donnee, $qui, $opt);
    122123}
    123124function autoriser_form_donnee_instituer_dist($faire,$type,$id_donnee,$qui,$opt) {
Note: See TracChangeset for help on using the changeset viewer.