forked from MarseyWorld/MarseyWorld
master
parent
2c6941e84f
commit
043658b8e0
|
@ -41,6 +41,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
|||
|
||||
comment = get_comment(cid, v=v)
|
||||
|
||||
if comment.post and comment.post.club and not (v and v.coins > 150): abort(403)
|
||||
|
||||
if not comment.parent_submission and not (v and (comment.author.id == v.id or comment.sentto == v.id)) and not (v and v.admin_level == 6) : abort(403)
|
||||
|
||||
if not pid:
|
||||
|
@ -137,6 +139,7 @@ def api_comment(v):
|
|||
parent_id = parent_fullname.split("_")[1]
|
||||
if parent_fullname.startswith("t2"):
|
||||
parent_post = get_post(parent_id, v=v)
|
||||
if parent_post.club and not (v and v.coins > 150): abort(403)
|
||||
parent = parent_post
|
||||
parent_comment_id = None
|
||||
level = 1
|
||||
|
|
|
@ -1251,7 +1251,7 @@
|
|||
|
||||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
<!-- ClipboardJS -->
|
||||
|
||||
|
|
|
@ -144,6 +144,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th
|
|||
|
||||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
|
||||
{% include "bootstrap.html" %}
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
{% block onload %}{% endblock %}
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
{% block scripts %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -233,7 +233,7 @@
|
|||
|
||||
<!-- {{'SITE_NAME' | app_config}} JS -->
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
<!-- {{'SITE_NAME' | app_config}} JS -->
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
|
|
@ -489,7 +489,7 @@
|
|||
|
||||
<!-- {{'SITE_NAME' | app_config}} JS -->
|
||||
|
||||
<script src="/assets/js/general21.js"></script>
|
||||
<script src="/assets/js/general22.js"></script>
|
||||
|
||||
<!-- ClipboardJS -->
|
||||
|
||||
|
|
Loading…
Reference in New Issue