Selaa lähdekoodia

add template && user/profile

animeic 2 vuotta sitten
vanhempi
commit
2371a5c2db
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      oilseal-train/api/user.go

+ 4 - 4
oilseal-train/api/user.go

@@ -81,10 +81,10 @@ func UserProfile(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 	if err != nil {
 		return nil, errors.New("当前用户非法")
 	}
-	err = IsAdmin(apictx)
-	if err != nil {
-		return nil, err
-	}
+	// err = IsAdmin(apictx)
+	// if err != nil {
+	// 	return nil, err
+	// }
 	user := model.User{}
 	found, err := repo.RepoSeachDoc(apictx.CreateRepoCtx(), &repo.DocSearchOptions{
 		CollectName: repo.CollectionUser,