mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-29 04:57:20 +00:00
menu on myaccount page shows 'edit user' item if admin
This commit is contained in:
parent
601386f6be
commit
2414d9e510
|
@ -431,7 +431,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
echo "<div class=\"nav-collapse col2\">\n";
|
echo "<div class=\"nav-collapse col2\">\n";
|
||||||
echo "<ul class=\"nav\">\n";
|
echo "<ul class=\"nav\">\n";
|
||||||
|
|
||||||
if (!$this->params['disableselfedit']) echo "<li id=\"first\"><a href=\"../out/out.EditUserData.php\">".getMLText("edit_user_details")."</a></li>\n";
|
if ($this->params['user']->isAdmin() || !$this->params['disableselfedit'])
|
||||||
|
echo "<li id=\"first\"><a href=\"../out/out.EditUserData.php\">".getMLText("edit_user_details")."</a></li>\n";
|
||||||
|
|
||||||
if (!$this->params['user']->isAdmin())
|
if (!$this->params['user']->isAdmin())
|
||||||
echo "<li><a href=\"../out/out.UserDefaultKeywords.php\">".getMLText("edit_default_keywords")."</a></li>\n";
|
echo "<li><a href=\"../out/out.UserDefaultKeywords.php\">".getMLText("edit_default_keywords")."</a></li>\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user