Commit 95680298 authored by Raph El's avatar Raph El
Browse files

Hotfix delete user not connected

parent 20d047c7
......@@ -400,16 +400,17 @@
</li>
<?php } ?>
<?php if (Authorisation::canDeleteElement((String)$element["_id"], $type, Yii::app()->session["userId"]) && !@$deletePending) { ?>
<li class="text-left">
<a href="javascript:;" id="btn-delete-element" class="bg-white text-red" data-toggle="modal">
<i class="fa fa-trash"></i>
<?php echo Yii::t("common", "Delete {what}",
array("{what}"=>
Yii::t("common","this ".Element::getControlerByCollection($type))));
?>
</a>
</li>
<?php if ( Authorisation::canDeleteElement((String)$element["_id"], $type, Yii::app()->session["userId"]) &&
!@$deletePending && !empty(Yii::app()->session["userId"])) { ?>
<li class="text-left">
<a href="javascript:;" id="btn-delete-element" class="bg-white text-red" data-toggle="modal">
<i class="fa fa-trash"></i>
<?php echo Yii::t("common", "Delete {what}",
array("{what}"=>
Yii::t("common","this ".Element::getControlerByCollection($type))));
?>
</a>
</li>
<?php } ?>
<?php } else { ?>
<?php if(@Yii::app()->session["userId"] && $edit==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