Closed (fixed)
Project:
Group
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
18 Jan 2022 at 14:24 UTC
Updated:
2 Feb 2022 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Magic string checks such as "has the god mode permission" are bad. Let's turn those into dedicated methods.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | group-3259144-8.patch | 32.87 KB | kristiaanvandeneynde |
Comments
Comment #2
kristiaanvandeneyndeInterested to find out how many tests this breaks. It also turns existing god mode roles into actual admin roles, even if they are anon/outsider/member. We can fix the fact that you can't edit those in #3204083: Rework group roles into a scoped system and adjust permission calculation where we will allow these special roles to be deleted.
Comment #4
kristiaanvandeneyndeForgot to update the schema.
Comment #6
kristiaanvandeneyndeAdjusted tests and removed the 'administer group' group permission as it serves no purpose now.
Comment #8
kristiaanvandeneyndeDeleted a necessary admin check by accident.
Comment #10
kristiaanvandeneynde