Hardcode -> not hardcode :)

This commit is contained in:
Gerard.S 2019-05-30 21:52:08 +02:00
parent 93c221ffad
commit 4954b1dacc
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ var articleModel = new(models.ArticleModel)
//Create ...
func (ctrl ArticleController) Create(c *gin.Context) {
userID := 1
userID := getUserID(c)
if userID == 0 {
c.JSON(http.StatusForbidden, gin.H{"message": "Please login first"})