Browse Source

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

master
Cerdic 2 months ago
parent
commit
be43410dfe
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      formulaires/editer_site.php
  2. +1
    -1
      paquet.xml

+ 4
- 0
formulaires/editer_site.php View File

@ -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;
}


+ 1
- 1
paquet.xml View File

@ -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