diff --git a/leaflet_storage/managers.py b/leaflet_storage/managers.py index 6f8586d..122e232 100644 --- a/leaflet_storage/managers.py +++ b/leaflet_storage/managers.py @@ -4,5 +4,7 @@ class MapManager(models.GeoManager): def visible(self, request): filter = Q(share_status=self.model.PUBLIC) + filter = filter | Q(owner=request.user) + filter = filter | Q(editors=request.user) return self.filter(filter)