Commit e6faaa335274f0ed98779bc1db8cc99637dc983d
1 parent
ba2c7a63
[Orga] Oublié session_start()
Ça marche mieux en prod.
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
orga.php
@@ -5,6 +5,9 @@ | @@ -5,6 +5,9 @@ | ||
5 | $time = time(); | 5 | $time = time(); |
6 | 6 | ||
7 | # e_ : est | 7 | # e_ : est |
8 | + | ||
9 | +session_start(); | ||
10 | + | ||
8 | $e_connecte = isset($_SESSION["connected"]) && $_SESSION["connected"]; | 11 | $e_connecte = isset($_SESSION["connected"]) && $_SESSION["connected"]; |
9 | $e_admin = isset($_SESSION["admin"]) && $_SESSION["admin"]; | 12 | $e_admin = isset($_SESSION["admin"]) && $_SESSION["admin"]; |
10 | 13 | ||
@@ -13,7 +16,7 @@ if ($e_connecte) { | @@ -13,7 +16,7 @@ if ($e_connecte) { | ||
13 | if ($e_admin) { | 16 | if ($e_admin) { |
14 | $droits = array('voir', 'voter', 'ajouter', 'proposer', 'annuler', 'supprimer', 'modifier', 'valider'); | 17 | $droits = array('voir', 'voter', 'ajouter', 'proposer', 'annuler', 'supprimer', 'modifier', 'valider'); |
15 | } else { | 18 | } else { |
16 | - $droits = array('voir', 'voter'); | 19 | + $droits = array('voir', 'voter', 'proposer'); |
17 | } | 20 | } |
18 | } else { | 21 | } else { |
19 | $droits = array('voir'); | 22 | $droits = array('voir'); |