rdluck 4 years ago
parent
commit
a3e565cefe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/user.go

+ 1 - 1
controllers/user.go

@@ -152,7 +152,7 @@ func (this *UserController) Detail() {
 	}
 
 	var hasPermission int
-	if user.CompanyId > 0 {
+	if user.CompanyId > 1 {
 		companyItem, err := models.GetCompanyDetailById(user.CompanyId)
 		if err != nil && err.Error() != utils.ErrNoRow() {
 			br.Msg = "获取信息失败"