approve_or_disapprove_proposal
@mount("votes.approve_or_disapprove_proposal")
operation approve_or_disapprove_proposal(proposal_id: rowid, is_approve: boolean)
Approves or disapproves a specific proposal based on the citizen's decision.
Parameters
proposal_id
The ID of the proposal to be approved or disapproved.
is_approve
A boolean indicating whether the proposal is approved (
true) or disapproved (false).
Throws
Unauthorized Error
If the requester does not have necessary privileges.
Proposal Not Found Error
If the proposal with the given
proposal_iddoes not exist.
Invalid Proposal State Error
If the proposal cannot be approved or disapproved based on its current state.
Verification Error
If there is an issue with the proposal's verification status after approval or disapproval.