Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Content such as Basic Page and Article are not visible to anonymous users. I have set the "Entity: View content entities" for the above pages and the correct view is shown to the super user (user 1). They also seemed correct when I first tested (just after setting permissions).
If an article is promoted to the front page then is only shows for someone who is at least a member.
Comment | File | Size | Author |
---|---|---|---|
#11 | group-2857321-11.patch | 4.48 KB | kristiaanvandeneynde |
| |||
#11 | group-2857321-11-TEST-ONLY.patch | 2.52 KB | kristiaanvandeneynde |
Comments
Comment #2
kristiaanvandeneyndeHmm, this should work. Could you provide steps to reproduce?
Comment #3
magpie5212 CreditAttribution: magpie5212 commentedI have been trying to get this down to some simple steps. I created two group types, Club and Service Team. I set up a view to show a list of the Basic Pages which I placed in a block on the page for both of the group types. As far as I can tell I set the permission the same for both the group types. I find that for Service Team the pages are visible in the list and then accessible to anyone. However, the same view placed on a Club page doesn't show the pages.
The site is on a test domain at the moment at eight.1060.org.uk if that's any help.
Comment #4
gaydamaka CreditAttribution: gaydamaka as a volunteer and at FFW commentedHi
Maybe I can help for this issue.
Comment #5
gaydamaka CreditAttribution: gaydamaka as a volunteer and at FFW commentedComment #6
gaydamaka CreditAttribution: gaydamaka as a volunteer and at FFW commentedWhen we have more one group type in loop every iteration we replace
$grants_ao["gnode:$node_type_id"]
on new and weight has only last group type.Comment #7
magpie5212 CreditAttribution: magpie5212 commentedI applied the patch and it fixes the problem.
Comment #8
kristiaanvandeneyndeThanks for the feedback, this shows that our tests are not covering every scenario. Will try to produce a failing test and see if the patch fixes it.
Comment #9
kristiaanvandeneyndeThis oughta do it
Comment #11
kristiaanvandeneyndeWhoops, didn't adjust test properly.
Comment #12
kristiaanvandeneyndeOther build failed but seems to have stalled. Patch remains the same, so committing. We need better grants tests though, the current ones are rather cryptic :)