diff --git a/application/default/views/scripts/header.phtml b/application/default/views/scripts/header.phtml index 75c77134..2f7fa6cb 100755 --- a/application/default/views/scripts/header.phtml +++ b/application/default/views/scripts/header.phtml @@ -17,7 +17,7 @@ { $user = $auth->getIdentity(); echo ' '.$user->username.' '; - if ($user->usertype=="administrator") + if ($user->usertype == $this->config->auth->identifier) { echo ' 后台 '; }