mirror of
				https://github.com/usememos/memos.git
				synced 2025-06-05 22:09:59 +02:00 
			
		
		
		
	chore: update dev version
This commit is contained in:
		| @@ -64,20 +64,22 @@ func aclMiddleware(s *Server, next echo.HandlerFunc) echo.HandlerFunc { | |||||||
| 			return next(c) | 			return next(c) | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		// If there is openId in query string and related user is found, then skip auth. | 		{ | ||||||
| 		openID := c.QueryParam("openId") | 			// If there is openId in query string and related user is found, then skip auth. | ||||||
| 		if openID != "" { | 			openID := c.QueryParam("openId") | ||||||
| 			userFind := &api.UserFind{ | 			if openID != "" { | ||||||
| 				OpenID: &openID, | 				userFind := &api.UserFind{ | ||||||
| 			} | 					OpenID: &openID, | ||||||
| 			user, err := s.Store.FindUser(ctx, userFind) | 				} | ||||||
| 			if err != nil && common.ErrorCode(err) != common.NotFound { | 				user, err := s.Store.FindUser(ctx, userFind) | ||||||
| 				return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find user by open_id").SetInternal(err) | 				if err != nil && common.ErrorCode(err) != common.NotFound { | ||||||
| 			} | 					return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find user by open_id").SetInternal(err) | ||||||
| 			if user != nil { | 				} | ||||||
| 				// Stores userID into context. | 				if user != nil { | ||||||
| 				c.Set(getUserIDContextKey(), user.ID) | 					// Stores userID into context. | ||||||
| 				return next(c) | 					c.Set(getUserIDContextKey(), user.ID) | ||||||
|  | 					return next(c) | ||||||
|  | 				} | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -10,7 +10,7 @@ import ( | |||||||
| var Version = "0.4.3" | var Version = "0.4.3" | ||||||
|  |  | ||||||
| // DevVersion is the service current development version. | // DevVersion is the service current development version. | ||||||
| var DevVersion = "0.5.0" | var DevVersion = "0.4.4" | ||||||
|  |  | ||||||
| func GetCurrentVersion(mode string) string { | func GetCurrentVersion(mode string) string { | ||||||
| 	if mode == "dev" { | 	if mode == "dev" { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user