Description of problem: A member of the "admin" group can remove the "admin" group. This doesn't sound right. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Cannot delete the admin group. Additional info:
Just took a look at the code, and indeed, there is no check against "is_protected_group()" for group removal - so the "queue_admin" and "lab_controller" groups can also be removed. Group removal should be moved to a helper method on bkr.server.model.identity.Group and protected names guarded (in a similar setup to their existing protection against name changes)
On Gerrit: http://gerrit.beaker-project.org/#/c/3477/ Cheers, Matt Jia
Beaker 19.1 is released.