System will be undergoing maintenance on November 24th from 20:00 CET to November 25th 05:00 CET Some downtime might happen. Sorry for the inconvenience.

Commit b830d78e authored by Jean-Philippe Levy's avatar Jean-Philippe Levy

Fix no password modification link if ldap user

parent 054b5ba1
......@@ -113,9 +113,16 @@ if( strpos($_SERVER["PHP_SELF"], "/module/module_frame") !== false ){
<i class="fa fa-user fa-fw"></i> <?php echo $_COOKIE['user_name']; ?> <i class="fa fa-caret-down"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<?php
// No password modification link if ldap user
$ldapsql=sqlrequest($database_eonweb,"SELECT user_type FROM users WHERE user_name='".$_COOKIE["user_name"]."';");
$user_type=mysqli_result($ldapsql,0,"user_type");
if($user_type != 1) {
?>
<li><a href="/module/module_password/index.php"><i class="fa fa-user fa-fw"></i> <?php echo getLabel("menu.user.profile"); ?></a>
</li>
<li class="divider"></li>
<?php } ?>
<li><a href="/logout.php"><i class="fa fa-sign-out fa-fw"></i> <?php echo getLabel("menu.user.disconnect"); ?></a>
</li>
</ul>
......
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