Skip to content

feat: RPC chair hold manager role#1125

Open
rudimatz wants to merge 3 commits intoietf-tools:mainfrom
rudimatz:feat/sync-claims-from-dt-to-role
Open

feat: RPC chair hold manager role#1125
rudimatz wants to merge 3 commits intoietf-tools:mainfrom
rudimatz:feat/sync-claims-from-dt-to-role

Conversation

@rudimatz
Copy link
Copy Markdown
Contributor

@rudimatz rudimatz commented Apr 17, 2026

give the manager role to RPC persons that hold the chair role for rpc in claim from DT

@rudimatz rudimatz marked this pull request as ready for review April 17, 2026 19:06
Comment thread rpcauth/backends.py
self._sync_manager_role(user, claims)
return user

def _sync_manager_role(self, user, claims):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Small refactor request: rather than teaching this module about how we manage permissions, give that responsibility to rpcauth.models.User. If it had a method like set_is_manager(value: bool) to do the work of creating/removing the can_hold_role entry, then backends.py stays independent of the rpc app.

I think that's mostly just moving code, not actually changing it.

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.

2 participants