Skip to content

Add require_admin_or_relayer for shared-permission operations#623

Open
Meshmulla wants to merge 1 commit intoSynapse-bridgez:mainfrom
Meshmulla:feature/issue-65-admin-or-relayer
Open

Add require_admin_or_relayer for shared-permission operations#623
Meshmulla wants to merge 1 commit intoSynapse-bridgez:mainfrom
Meshmulla:feature/issue-65-admin-or-relayer

Conversation

@Meshmulla
Copy link
Copy Markdown

closes #69

This PR introduces a require_admin_or_relayer function to allow operations that can be performed by either an admin or a registered relayer. This supports shared-permission use cases and unblocks future features.

Changes Included:
Added require_admin_or_relayer function in src/access/mod.rs
Validates caller is either admin or registered relayer
Added unit tests for both valid and invalid access scenarios

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Meshmulla 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

Development

Successfully merging this pull request may close these issues.

#65 Add require_admin_or_relayer for shared-permission operations

1 participant