allow dev users self-voting

This commit is contained in:
Umputun
2018-05-11 16:14:11 -05:00
parent db7f4c84bf
commit f50713fa31
+1 -1
View File
@@ -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)
}