@@ -85,7 +85,6 @@ def post(self, request):
8585
8686 # Check if the User has permissions to update
8787 if not request .user .is_superuser \
88- and not request .user .has_perm ('api.ifrc_admin' ) \
8988 and not request .user .has_perm ('api.per_core_admin' ):
9089 countries , regions = self .get_request_user_regions (request )
9190 # These need to be strings
@@ -154,7 +153,6 @@ def post(self, request):
154153
155154 # Check if the User has permissions to update
156155 if not request .user .is_superuser \
157- and not request .user .has_perm ('api.ifrc_admin' ) \
158156 and not request .user .has_perm ('api.per_core_admin' ):
159157 countries , regions = self .get_request_user_regions (request )
160158 overview_id = forms [list (forms .keys ())[0 ]]['overview' ]['id' ]
@@ -326,7 +324,6 @@ def post(self, request):
326324
327325 # Check if the User has permissions to create
328326 if not request .user .is_superuser \
329- and not request .user .has_perm ('api.ifrc_admin' ) \
330327 and not request .user .has_perm ('api.per_core_admin' ):
331328 countries , regions = self .get_request_user_regions (request )
332329 country = Country .objects .filter (id = country_id ).first () if country_id else None
@@ -446,7 +443,6 @@ def post(self, request):
446443
447444 # Check if the User has permissions to update
448445 if not request .user .is_superuser \
449- and not request .user .has_perm ('api.ifrc_admin' ) \
450446 and not request .user .has_perm ('api.per_core_admin' ):
451447 countries , regions = self .get_request_user_regions (request )
452448 country = Country .objects .filter (id = country_id ).first () if country_id else None
0 commit comments