Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can_manage_group can have better semantics #2155

Closed
ietf-svn-bot opened this issue Jan 23, 2017 · 3 comments
Closed

can_manage_group can have better semantics #2155

ietf-svn-bot opened this issue Jan 23, 2017 · 3 comments

Comments

@ietf-svn-bot
Copy link

resolution_fixed type_defect | by [email protected]


Right now ietf.group.utils.can_manage_group (and can_manage_group_type) have the surprising result that chairs can't manage their own group.

This leads to code that checks can_manage_group that immediately also checks to see if the user is a chair (or secretary, or lead, or whatever other role would let them, well, manage the group).

I suspect the code overall would be simpler if can_manage_group answered yes for roles like chair.

Also, can_manage_group_type and can_manage_group currently have separate (and disagreeing) implementations. One should be implemented in terms of the other.


Issue migrated from trac:2155 at 2022-03-04 05:40:48 +0000

@ietf-svn-bot
Copy link
Author

@[email protected] changed status from new to closed

@ietf-svn-bot
Copy link
Author

@[email protected] changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@[email protected] commented


Fixed in e2640f3:

Changed semantics for can_manage_group() to include chairs etc, and changed calls with the old semantics to use can_manage_group_type(). Rewrote can_manage_group() in terms of can_manage_group_type() and additional checks. Fixes issue #2155.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant