use raise_visible_to_user in group model
instead of if visible_to_user
This commit is contained in:
parent
f13223b8ca
commit
1ad8d87434
|
@ -29,8 +29,7 @@ class Group(View):
|
|||
# lists = privacy_filter(request.user, lists)
|
||||
|
||||
# don't show groups to users who shouldn't see them
|
||||
if not group.visible_to_user(request.user):
|
||||
return HttpResponseNotFound()
|
||||
group.raise_visible_to_user(request.user)
|
||||
|
||||
data = {
|
||||
"group": group,
|
||||
|
|
Loading…
Reference in New Issue