Private
Public Access
1
0

more fixes

This commit is contained in:
Sander Roosendaal
2020-01-15 15:55:41 +01:00
parent 88703bb34e
commit 8683d8eaa4
10 changed files with 29 additions and 44 deletions

View File

@@ -1351,7 +1351,7 @@ class TrainingPlan(models.Model):
def save(self, *args, **kwargs):
manager = self.manager
if not can_add_plan(manager):
if not can_add_plan(manager.user):
raise ValidationError(
"Basic user cannot have a training plan"
)