Skip to content

Commit

Permalink
Revert "Add whitelisted users check to poll creation" (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Man-Jain authored Jan 24, 2024
1 parent 3f18331 commit e466bc4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions components/polls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ const addPoll = async (req, response) => {
throw new Error("DAO Does not exist");
}

if (
dao.whitelistedUsers &&
dao.whitelistedUsers.length > 0 &&
!dao.whitelistedUsers.includes(author)
) {
throw new Error("Only whitelisted users can create polls on this DAO");
}

const token = await db_connect
.collection("Tokens")
.findOne({ tokenAddress: dao.tokenAddress });
Expand Down

0 comments on commit e466bc4

Please sign in to comment.