Tests expect a False to be returned from the funcion
svn path=/plone.app.discussion/trunk/; revision=49137
This commit is contained in:
parent
3a3a2d8e36
commit
9ac35de362
@ -45,8 +45,7 @@ class View(BrowserView):
|
||||
comment_workflow = workflowTool[comment_workflow]
|
||||
if 'pending' in comment_workflow.states:
|
||||
return True
|
||||
else:
|
||||
return
|
||||
return False
|
||||
|
||||
|
||||
class ModerateCommentsEnabled(BrowserView):
|
||||
@ -64,8 +63,8 @@ class ModerateCommentsEnabled(BrowserView):
|
||||
comment_workflow = workflowTool[comment_workflow]
|
||||
if 'pending' in comment_workflow.states:
|
||||
return True
|
||||
else:
|
||||
return
|
||||
|
||||
return False
|
||||
|
||||
|
||||
class DeleteComment(BrowserView):
|
||||
|
Loading…
Reference in New Issue
Block a user