Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions selections/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
@auth.oidc_auth
@before_request
def main(info=None):
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']
member = Members.query.filter_by(username=info['uid']).first()

all_applications = Applicant.query.all()
Expand Down
4 changes: 2 additions & 2 deletions selections/blueprints/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
def get_application(app_id, info=None):
applicant_info = Applicant.query.filter_by(id=app_id).first()
member = Members.query.filter_by(username=info['uid']).first()
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']
if not member and not (is_rtp or is_evals):
return redirect(url_for('main'))

Expand Down
16 changes: 8 additions & 8 deletions selections/blueprints/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
@auth.oidc_auth
@before_request
def get_teams(info=None):
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']

if not is_evals and not is_rtp:
flash('Not Evals or an RTP')
Expand All @@ -37,8 +37,8 @@ def get_teams(info=None):
@auth.oidc_auth
@before_request
def create_team(info=None):
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']

if not is_evals and not is_rtp:
flash('Not Evals or an RTP')
Expand Down Expand Up @@ -72,8 +72,8 @@ def create_team(info=None):
@auth.oidc_auth
@before_request
def add_to_team(team_id, info=None):
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']

if not is_evals and not is_rtp:
flash('Not Evals or an RTP')
Expand Down Expand Up @@ -105,8 +105,8 @@ def add_to_team(team_id, info=None):
@auth.oidc_auth
@before_request
def remove_from_team(username, info=None):
is_evals = 'eboard-evaluations' in info['group_list']
is_rtp = 'rtp' in info['group_list']
is_evals = '/eboard-evaluations' in info['group_list']
is_rtp = '/active_rtp' in info['group_list']

if not is_evals and not is_rtp:
return 'Not Evals or an RTP'
Expand Down