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

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>
<ul class="dropdown-menu dropdown-user">
// No password modification link if ldap user
$ldapsql=sqlrequest($database_eonweb,"SELECT user_type FROM users WHERE user_name='".$_COOKIE["user_name"]."';");
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 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>
Supports Markdown
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