Skip to content

Conversation

@Luke-Oldenburg
Copy link
Contributor

Summary of the problem

closes #12065

Describe your changes

@Luke-Oldenburg Luke-Oldenburg requested review from a team as code owners November 10, 2025 23:25

# the receipt is on a reimbursement report. people making reports may not be in the organization.
if record.receiptable.instance_of?(Reimbursement::Expense)
return (record.receiptable.report.user == user || OrganizerPosition.role_at_least?(user, record.receiptable.event, :manager)) && unlocked?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could event be nil here if the reimbursement was started via email? Would that be an issue?

@garyhtou
Copy link
Member

See question here: #12065 (comment)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Receipt] Don't allow members to modify reimbursements they don't own

3 participants