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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user