修改头部用户操作按钮
This commit is contained in:
parent
3af42da773
commit
85fd4c182c
|
@ -17,7 +17,7 @@
|
||||||
{
|
{
|
||||||
$user = $auth->getIdentity();
|
$user = $auth->getIdentity();
|
||||||
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
echo '<a href="/account"><i class="icon-user"></i> '.$user->username.'</a> ';
|
||||||
if ($user->usertype=="administrator")
|
if ($user->usertype == $this->config->auth->identifier)
|
||||||
{
|
{
|
||||||
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
echo '<a href="/admin"><i class="icon-cog"></i> 后台 </a>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue