Bug Fixed Governance

This commit is contained in:
Luis Fernando Molina committed 2021-10-30 12:31:21 +02:00
1 parent 94fc19c6d8
commit 50acdf9e2f
1 file changed
+2
@@ -281,6 +281,8 @@ function newGovernanceFunctionLibraryVotingProgram() {
Here we will validate that users can not vote for their own claims.
*/
let votedUserProfile = UI.projects.visualScripting.utilities.hierarchy.getHiriarchyHead(node.payload.referenceParent)
if (votedUserProfile === undefined || userProfile === undefined) { return }
if (votedUserProfile.id === userProfile.id) {
node.payload.uiObject.setErrorMessage('Voting your own claims is not allowed.')
return