Skip to content

Commit 2ce77df

Browse files
Merge pull request #1427 from IFRCGo/develop
Anon users should see public EmergencyProjects
2 parents 666ba55 + 0285eaf commit 2ce77df

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## Unreleased
88

9+
## 1.1.442
10+
11+
### Added
12+
- Anon users should see public EmergencyProjects
13+
914
## 1.1.441
1015

1116
### Added
@@ -1983,7 +1988,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
19831988

19841989
## 0.1.20
19851990

1986-
[Unreleased]: https://github.com/IFRCGo/go-api/compare/1.1.441...HEAD
1991+
[Unreleased]: https://github.com/IFRCGo/go-api/compare/1.1.442...HEAD
1992+
[1.1.442]: https://github.com/IFRCGo/go-api/compare/1.1.441...1.1.442
19871993
[1.1.441]: https://github.com/IFRCGo/go-api/compare/1.1.440...1.1.441
19881994
[1.1.440]: https://github.com/IFRCGo/go-api/compare/1.1.439...1.1.440
19891995
[1.1.439]: https://github.com/IFRCGo/go-api/compare/1.1.438...1.1.439

deployments/drf_views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ class EmergencyProjectViewSet(
710710
queryset = EmergencyProject.objects.order_by('-modified_at').prefetch_related(
711711
'created_by', 'reporting_ns', 'districts', 'event', 'country'
712712
).all()
713-
permission_classes = [IsAuthenticated]
713+
# Intentionally not IsAuthenticated. Anons should see public EmergencyProjects:
714+
permission_classes = []
714715
filterset_class = EmergencyProjectFilter
715716
serializer_class = EmergencyProjectSerializer
716717
ordering_fields = ('title',)

main/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from .celery import app as celery_app
44

55
__all__ = ['celery_app']
6-
__version__ = '1.1.441'
6+
__version__ = '1.1.442'

0 commit comments

Comments
 (0)