Skip to content

Commit

Permalink
Advanced workflow: filter actions stream returned to the users accord…
Browse files Browse the repository at this point in the history
…ingly to their perms
  • Loading branch information
afabiani committed Oct 22, 2020
1 parent 7380906 commit e2522fd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions geonode/social/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ def _filter_actions(action, request):
},
'base.view_resourcebase')
_filtered_actions.append(_action.id)
except (PermissionDenied, ResourceBase.DoesNotExist) as e:
logging.debug(e)
except Exception as e:
except ResourceBase.DoesNotExist:
_filtered_actions.append(_action.id)
except (PermissionDenied, Exception) as e:
logging.debug(e)
pass
return _filtered_actions

context['action_list'] = Action.objects.filter(
Expand Down

0 comments on commit e2522fd

Please sign in to comment.