Skip to content

fix: restrict proposal document attachment to the proposal's own owner - #33

Merged
bbjiggy merged 1 commit into
ourdao:mainfrom
Gbangbolaoluwagbemiga:fix/issues-20-21-24-25
Aug 27, 2026
Merged

fix: restrict proposal document attachment to the proposal's own owner#33
bbjiggy merged 1 commit into
ourdao:mainfrom
Gbangbolaoluwagbemiga:fix/issues-20-21-24-25

Conversation

@Gbangbolaoluwagbemiga

Copy link
Copy Markdown
Contributor

Summary

attach_document only checked that the caller was an active DAO member — any member could overwrite any other member's proposal document (loan or treasury). Added proposal_owner() (borrower for loan proposals, proposer for treasury proposals) and require the caller to match before allowing the write. New Error::NotProposalOwner.

Closes #20
Closes #21
Closes #25
Closes #24

Resolves ourdao#21 — attach_document only checked that the caller was an active
DAO member, so any member could overwrite any other proposal's attached
document (loan or treasury). Added proposal_owner() (borrower for loan
proposals, proposer for treasury proposals) and require the caller to match
before allowing the write. New Error::NotProposalOwner (73).

Closes ourdao#20
Closes ourdao#21
Closes ourdao#25
Closes ourdao#24
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@Gbangbolaoluwagbemiga Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants