more fixes
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user