Cause: - :require_membership uses @group to check whether user can view, - @group is set by :set_group, from :group_id parameter, _without_ checking whether (for the methods dealing with an Activity) that Group is the Activity's Group - if a user is a member of at least one Group (default situation), then the User could freely view other activities by guessing at the id, but leaving the :group_id set to the User's Group.
|
|
||
1 |
|
1 |
|
2 |
|
2 |
|
3 |
|
3 |
|
4 |
|
|
|
5 |
|
|
|
|
4 |
|
|
|
5 |
|
|
6 |
|
6 |
|
7 |
|
7 |
|
8 |
|
8 |
|
|
|
||
160 |
|
160 |
|
161 |
|
161 |
|
162 |
|
162 |
|
163 |
|
|
|
164 |
|
|
|
|
163 |
|
|
|
164 |
|
|
165 |
|
165 |
|
|
166 |
|
|
166 |
|
167 |
|
167 |
|
168 |
|
168 |
|
169 |
|