-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature to allow users editing their owns comments #1822
Comments
I didn't have to bother with TinyMCE. This worked for me:
Is it okay to add it like this? |
We should add this ability for users to edit their own comments. The approach you've taken isn't correct though - inline editing is definitely only intended for administrators. The correct approach will need to modify the |
{% editable comment.comment %}
only allows staff to edit comments, please allow also users to edit their own comments.References:
mezzanine/js/editable.js
mezzanine/core/includes/editable_form.html
mezzanine.core.views.edit
if not (is_editable(obj, request) and has_site_permission(request.user)):
withif request.user != obj.user
I purposely didn't add a pull request, because I don't know how to integrate this with TinyMCE.
The text was updated successfully, but these errors were encountered: