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

[COMP-329] : removing admin and observer condition

parent badfa539
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: ...@@ -71,8 +71,6 @@ def get_active_survey_year() -> Any:
compendium_v2.routes.survey.SURVEY_ACTIVE_YEAR_RESPONSE_SCHEMA 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_record = db.session.query(Survey.year).filter(
Survey.status == SurveyStatus.open 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