修改头部用户操作按钮

This commit is contained in:
Li Jianxuan 2014-06-11 09:36:14 +00:00
parent 3af42da773
commit 85fd4c182c
1 changed files with 1 additions and 1 deletions

View File

@ -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>';
} }