Skip to content
Snippets Groups Projects
Commit 4d3704c8 authored by Saket Agrahari's avatar Saket Agrahari
Browse files

Merge branch 'COMP-329' into 'develop'

[COMP-329] : removing admin and observer condition

See merge request !93
parents f51813df bccd8294
No related branches found
No related tags found
1 merge request!93[COMP-329] : removing admin and observer condition
......@@ -71,8 +71,6 @@ def get_active_survey_year() -> Any:
compendium_v2.routes.survey.SURVEY_ACTIVE_YEAR_RESPONSE_SCHEMA
"""
if not (current_user.is_admin or current_user.is_observer):
return {'message': 'Insufficient privileges to access this resource'}, 403
survey_record = db.session.query(Survey.year).filter(
Survey.status == SurveyStatus.open
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment