A user should not be able to vote on own content
ClosedPublic

Authored by Dalai Felinto (dfelinto) on Sep 5 2017, 8:19 PM.

Details

Summary

This should be hidden in the UI as well, but the backend should support this too.
We also want to set initial rating of 1 for content.

Bonus: I added unittest for this.

Diff Detail

Repository
rPS Pillar

LGTM. It's up to you whether you agree with my one comment or not ;-)

pillar/api/nodes/custom/comment.py
51

There is no need to return ObjectIDs in the error message. Probably 'You cannot vote on your own node' is better; it seems more user-friendly to me.

This revision is now accepted and ready to land.Sep 6 2017, 10:39 AM
This revision was automatically updated to reflect the committed changes.