Skip to content

Commit

Permalink
Only check instance.isprivate when class == Project.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesBradbury committed Aug 23, 2018
1 parent 7faf319 commit 2b1e6d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion geokey_wegovnow/logger.py
Expand Up @@ -99,7 +99,7 @@ def make_event(class_name, instance, action):
activity_objects = []
visibility_details = []
details = {}
if action == 'removed' or instance.isprivate or instance.status != 'active':
if action == 'removed' or instance.status != 'active':
hidden = True
else:
hidden = False
Expand All @@ -111,6 +111,8 @@ def make_event(class_name, instance, action):
if class_name == 'Project':
external_url = '%s/api/projects/%s/' % (
domain, instance.id)
if instance.isprivate:
hidden = True

activity_objects.append({
'type': 'Feature',
Expand Down

0 comments on commit 2b1e6d3

Please sign in to comment.