Skip to content

Commit

Permalink
Fix admin comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
wliyongfeng committed Jan 7, 2024
1 parent 0c52435 commit 0e16b41
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ async function createProposal({
throw new HttpError(500, "Unknown space");
}

if (spaceService.admin && spaceService.admin !== address) {
if (
spaceService.admin &&
spaceService.admin.toLowerCase() !== (address || "").toLowerCase()
) {
throw new HttpError(
401,
`Only admin(${spaceService.admin}) can create proposal`,
Expand Down

0 comments on commit 0e16b41

Please sign in to comment.