Private
Public Access
1
0

bug fixing - bugs detected by manually poking around on the site

need additional testing suite to systematically go through all
permissions
need additional permissions check at Model level - models.py
This commit is contained in:
Sander Roosendaal
2020-01-17 14:33:56 +01:00
parent c186895e7a
commit 1c9bdc24b5
6 changed files with 19 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ import datetime
from requests import Request, Session
import rowers.mytypes as mytypes
from rowers.mytypes import otwtypes
from rowers.rower_rules import is_workout_user
from rowers.rower_rules import is_workout_user,ispromember
from iso8601 import ParseError
import numpy
@@ -156,7 +156,7 @@ def add_stroke_data(user,c2id,workoutid,startdatetime,csvfilename,
def get_c2_workouts(rower):
if not isprorower(rower):
if not ispromember(rower.user):
return 0
try: