change condition

This commit is contained in:
Administrator 2023-10-10 20:34:06 +03:00
parent 4bfc6c2f22
commit 3197f64d09

View File

@ -38,7 +38,7 @@ class ExperimentsView(BaseView):
elif condition == 'Только админам':
exp.condition = 'user.is_superuser'
elif condition == 'Только сотрудникам':
exp.condition = 'user.is_staff'
exp.condition = 'user.platform_staff'
else:
exp.condition = 'True'
exp.save()