Thomas Chazot 2 years ago
parent 59abc933fa
commit c03a40f9bc

@ -4,7 +4,7 @@ class FrontController {
public function __construct(){
$liste_actions_utilisateur = array('viewPrivateList','addPrivateList', 'accessAddListPrivee', 'deconnection', "accessModifyListPriv");
$liste_actions_utilisateur = array('viewPrivateList','addPrivateList', 'accessAddListPrivee', 'deconnection', "accessModifyListPriv", "modifyPrivateList");
$liste_actions_visiteur = array('accessListInfos', 'goHome','accessSignUp','accessSignIn','signIn','signUp', 'addListVis', 'delList', 'accessAddListVis', 'accessAddTask', 'deleteTask', 'modifierTache', "addTask");
global $rep,$vues,$bd,$dataView,$styles,$assets;

@ -34,7 +34,7 @@ class UserController {
case "addPrivateList":
$this->AddListPrivate($dVueEreur);
break;
case "modifyListPriv":
case "modifyPrivateList":
$this->ModifyListPriv($dVueEreur);
break;

@ -28,9 +28,7 @@ class MdlListe{
public function update(Liste $liste, string $name, bool $private){
$gate=new ListeGateway($this->con);
$liste->setName($name);
if ($liste->getCreator()!=null){
$liste->setPrivate($private);
}
$gate->update($liste);
}

Loading…
Cancel
Save