Commit 5158538b authored by Anatole Rakotoson's avatar Anatole Rakotoson

sommom

parent 78558d67
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
} }
} }
var_dump($el);
if (isset($el["_id"])) { if (isset($el["_id"])) {
$communityLinks = Element::getCommunityByTypeAndId( $el["collection"], (string)$el["_id"]); $communityLinks = Element::getCommunityByTypeAndId( $el["collection"], (string)$el["_id"]);
...@@ -36,10 +34,8 @@ ...@@ -36,10 +34,8 @@
$isAdm = true; $isAdm = true;
}else{ }else{
if(isset($memberValue["roles"])){ if(isset($memberValue["roles"])){
foreach ($memberValue["roles"] as $rolesId => $rolesValue) { if(in_array("Partenaire", $memberValue["roles"])){
if($rolesValue == "Partenaire"){ $partenaire = true;
$partenaire = true;
}
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment