use raise_visible_to_user in group model

instead of if visible_to_user
This commit is contained in:
Hugh Rundle 2021-10-03 12:02:57 +11:00
parent f13223b8ca
commit 1ad8d87434
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ class Group(View):
# lists = privacy_filter(request.user, lists) # lists = privacy_filter(request.user, lists)
# don't show groups to users who shouldn't see them # don't show groups to users who shouldn't see them
if not group.visible_to_user(request.user): group.raise_visible_to_user(request.user)
return HttpResponseNotFound()
data = { data = {
"group": group, "group": group,