Download & Extend

"OG Post Public filter" in views doesn't work correctly

Project:Organic groups
Version:master
Component:Og Views
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hi

I found this bug:
There is only one og post filter: "Organic groups: Post: Public" which can be true or false but using it with true value, it shows ONLY posts in public group(s), not all public posts (by OG node access). - e.g. posts which are public by default because they are in no group(s)
And the bug is that this filter doesn't show them.

I have a recent comments list on my site. (last x comments)
Currently in this list there are comments from posts to which some users have no access and I found that there is now way to remove that comments from this (recent comment list) with current available OG views filters. That is the way how I found this bug - I was looking option to do Recent comments list (from all site include groups together) but without comments on posts from private groups.

Great addon would be new filter: "Organic groups: Post: Is accesible to logged user" and using it user can see in Recent comment list posts from private groups too, but only if he is member/has access for it. But I don't want too much from you, I will be happy if you could change the way how Public filter is working (or to create some new)

Thanks for your work on this module
Igorik
http://www.somvprahe.sk

Comments

#1

Status:active» postponed (maintainer needs more info)

Views will only ever show content to which the user has access to. You don't need to add this filter in order to get what you want. If you are seeing inaccessible content, we either have a bug or your views relationship is incorrectly constructed.

#2

Hi

It is views 2 default view: Recent comments what I am using. And this view shows title of comments from the post, to which user have no access. I don't know to say if it is bug in views, If yes, I can write to merlinofchaos about it.

But the idea I wrote was another, if OG Post Public filter works correctly. Because it doesn't show public nodes which are not in groups. (They are public by default by OG node access). This filter shows as public only nodes which are in groups and they are public.
what you think about it? Because now there is no chance to list comments from public posts which are in groups together with public posts which aren't in groups. (one list of comments on public nodes)

Thanks
Igorik
http://www.somvprahe.sk

#3

Once again - you do not need a filter to accomplish what you describe. Maybe what you want is a field instead of a filter. I do not understand what changes you want from the default tracker View. Note that OG ships with a default View like tracker but adds FIELD that lists groups.

#4

Moshe, I think this might be related to the issue I posted at #319747: Views filter: list recent comments in user subscribed groups?. I've never solved the problem, and it sounds similar: comments attached to nodes that users don't have permission to see are showing up in the 'recent comments' list.

#5

Hi

Yes, this - "comments attached to nodes that users don't have permission to see are showing up in the 'recent comments' list"
is exactly what I tried to say to Moshe with this bug.

Igorik

#6

Status:postponed (maintainer needs more info)» closed (duplicate)

#319747: Views filter: list recent comments in user subscribed groups?. sorry, not much to report there yet.