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:
@@ -18,7 +18,7 @@ queuehigh = django_rq.get_queue('low')
|
||||
|
||||
from rowers.dataprep import columndict
|
||||
|
||||
from rowers.rower_rules import is_workout_user
|
||||
from rowers.rower_rules import is_workout_user,ispromember
|
||||
|
||||
import stravalib
|
||||
from stravalib.exc import ActivityUploadFailed,TimeoutExceeded
|
||||
@@ -125,7 +125,7 @@ def get_strava_workout_list(user,limit_n=0):
|
||||
# gets all new Strava workouts for a rower
|
||||
def get_strava_workouts(rower):
|
||||
|
||||
if not isprorower(rower):
|
||||
if not ispromember(rower.user):
|
||||
return 0
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user