Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compendium-v2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
compendium-v2
Commits
bccd8294
Commit
bccd8294
authored
1 year ago
by
Saket Agrahari
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compendium_v2/routes/survey.py
+0
-2
0 additions, 2 deletions
compendium_v2/routes/survey.py
with
0 additions
and
2 deletions
compendium_v2/routes/survey.py
+
0
−
2
View file @
bccd8294
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment