Browse Source

verifier l'autorisation de modifier le site passe en argument du formulaire d'edition

3.0
Cerdic 2 years ago
parent
commit
be43410dfe
  1. 4
      formulaires/editer_site.php
  2. 2
      paquet.xml

4
formulaires/editer_site.php

@ -61,6 +61,10 @@ function formulaires_editer_site_charger_dist(
$valeurs['logo'] = '';
$valeurs['format_logo'] = '';
if (intval($id_syndic) and !autoriser('modifier', 'site', intval($id_syndic))) {
$valeurs['editable'] = '';
}
return $valeurs;
}

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="sites"
categorie="edition"
version="2.0.5"
version="2.0.6"
etat="dev"
compatibilite="[3.3.0-dev;3.3.*]"
logo="prive/themes/spip/images/site-32.png"

Loading…
Cancel
Save