Direct users to renewal page on Store instead of /join
/join should only be used when someone can actually buy a new subscription. /renew should be used when someone already has a subscription that needs to be renewed. Since url_for('cloud.xxxx') makes no sense in Pillar, I just hard-coded /renew instead.
This commit is contained in:
@@ -134,7 +134,7 @@ def comments_for_node(node_id):
|
||||
project = Project({'_id': node.project})
|
||||
can_post_comments = project.node_type_has_method('comment', 'POST', api=api)
|
||||
can_comment_override = request.args.get('can_comment', 'True') == 'True'
|
||||
can_post_comments = can_post_comments and can_comment_override
|
||||
can_post_comments = can_post_comments and can_comment_override and current_user.has_cap('subscriber')
|
||||
|
||||
# Query for all children, i.e. comments on the node.
|
||||
comments = Node.all({
|
||||
|
Reference in New Issue
Block a user