Put case study editing behind a feature flag
This commit is contained in:
@ -166,6 +166,9 @@ class EditCaseStudy(UserPassesTestMixin, BaseEditForm):
|
||||
form_class = ShortCaseStudyForm
|
||||
|
||||
def test_func(self):
|
||||
if settings.FFCAN_EDIT is False:
|
||||
return False
|
||||
|
||||
object = self.get_object()
|
||||
if object.author:
|
||||
author = object.author.id
|
||||
|
Reference in New Issue
Block a user