From f50713fa31dab0eb2db0fd2d1af158187afcff76 Mon Sep 17 00:00:00 2001 From: Umputun Date: Fri, 11 May 2018 16:14:11 -0500 Subject: [PATCH] allow dev users self-voting --- app/store/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/service.go b/app/store/service.go index 72a9e0fd..c373f5ef 100644 --- a/app/store/service.go +++ b/app/store/service.go @@ -58,7 +58,7 @@ func (s *Service) Vote(locator Locator, commentID string, userID string, val boo return comment, err } - if comment.User.ID == userID { + if comment.User.ID == userID && userID != "dev" { return comment, errors.Errorf("user %s can not vote for his own comment %s", userID, commentID) }