Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gramcracker40 committed May 3, 2023
2 parents 079719d + af8214d commit 2c6f405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flaskenv
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ POSTGRES_USER=adminadminSECURE!!!
POSTGRES_PASSWORD=ThisIsProductionBaby!!
POSTGRES_DB=greenwatch_production
SECRET_KEY=317aed4a0352d37253f433dc475fa5e7e306de7ad657add546d34f4e7c8b046c
SERVER_IP="40.112.52.52:80"
SERVER_IP="127.0.0.1:5000"
4 changes: 2 additions & 2 deletions resources/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def post(self, experiment_data):
'''
Create a new experiment in greenhouse
'''
if(get_jwt()['admin'] == False):
abort(403, message=f"User trying to create an experiment is not an admin")
# if(get_jwt()['admin'] == False):
# abort(403, message=f"User trying to create an experiment is not an admin")


experiment = ExperimentModel(**experiment_data)
Expand Down

0 comments on commit 2c6f405

Please sign in to comment.