Closed (fixed)
Project:
Group
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Jan 2019 at 12:28 UTC
Updated:
8 Feb 2019 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Instead of reading out permissions from various roles (and thus potentially introducing a security risk), we should prepare Group for a centralized permission system. Step three would be to introduce a service that checks someone's permissions based on the calculated permissions (service introduced here: #3028340: Create a central service that calculates someone's group permissions).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | group-3028343-3.patch | 13.54 KB | kristiaanvandeneynde |
Comments
Comment #2
kristiaanvandeneyndeDo not test yet until other issues land.
Consider changing the @todo about Group vs Group ID since both current implementations could easily pass an ID. Although it is kind of ugly to ask for an account object and then a group ID (not object), it could improve performance by not having to load a membership's group. And you can only load a membership with a fully loaded group anyhow. So maybe remove the @todo and leave the code as is.
Comment #3
kristiaanvandeneyndeParent issue landed, let's do this.
Comment #5
kristiaanvandeneyndeAll aboard the green train.