Ajout de la conditions pour recherche
This commit is contained in:
parent
a154735a0c
commit
041f704bd0
1 changed files with 15 additions and 3 deletions
|
|
@ -155,9 +155,21 @@
|
||||||
<p>Pas de résultats</p>
|
<p>Pas de résultats</p>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{foreach $arrProjectToDisplay as $objProject}
|
{foreach from=$arrProjectToDisplay item=objProject}
|
||||||
{include file="views/_partial/preview.tpl"}
|
|
||||||
{/foreach}
|
{assign var="isAuthor" value=(isset($smarty.session.user) && $smarty.session.user.user_id == $objProject->getUser_id())}
|
||||||
|
{assign var="isModerator" value=(isset($smarty.session.user) && $smarty.session.user.user_status == 2)}
|
||||||
|
{assign var="isDeleted" value=($objProject->getProject_deleted_at() !== null)}
|
||||||
|
{assign var="isRefused" value=($objProject->getStatus() == "refusé")}
|
||||||
|
|
||||||
|
{if $isModerator
|
||||||
|
|| ($isAuthor && !$isDeleted)
|
||||||
|
|| (!$isRefused && !$isDeleted)}
|
||||||
|
|
||||||
|
{include file="views/_partial/preview.tpl"}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue