Can you try with a vastly reduced and simplified template? Are you using any extensions?
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 30, 2010 6:58am
Subscribe [8]#16 / Jan 11, 2011 3:45pm
Can you try with a vastly reduced and simplified template? Are you using any extensions?
#17 / Jan 12, 2011 3:50am
Ok, so I did a fresh install of EE 2.1.3 w/The Station from WooThemes, no settings changed, one extension (Custom System Messages)—- added this code inside the {exp:comment:entries} tag in the comments template:
{if editable}
<strong>YOU CAN EDIT THIS</strong>
{/if}Then I posted a comment as a regular member and refreshed the page. The text inside {if editable} does not show. If I view the same page as an admin I see “YOU CAN EDIT THIS”.
Just to clarify - I want regular members to be able to edit their own comments, on any blog entry. Is this possible?
#18 / Jan 12, 2011 4:01am
#19 / Jan 12, 2011 4:00pm
When you use {logged_in_screen_name} and {logged_in_group_id} in your template do you get the expected results?
#20 / Jan 13, 2011 3:52am
Ingo: thanks, might go with that one if I cannot get the built-in-functionality to work that way.
Ingmar: Yepp, {logged_in_screen_name} and {logged_in_group_id} outputs “test and 5” when viewing the page as the user called “test” (same user used to write the comment). Does this work on your install, Ingmar?
#21 / Jan 13, 2011 5:00am
Ok, so decided to take a look at the code and from what I can tell this functionality does not work as described in the documentation. From my perspective the documentation is right, the implementation is wrong.
The way it is implemented now members may only edit comments in channel entries they posted themselves (regardless of whether or not it is their own comment) - and only if they have the “Can edit own comments?” set to Yes (which would be a wrong description of that setting the way it works today).
Should I report a bug here?
#22 / Jan 13, 2011 4:35pm
Ok, so decided to take a look at the code and from what I can tell this functionality does not work as described in the documentation. From my perspective the documentation is right, the implementation is wrong.
After quite a bit of testing we have come to the same conclusion. There’s a workaround, allowing people to edit all comments, and then check for author of the comment being them but this does not work as expected; it’s a bug.
Should I report a bug here?
If you’d like to we’d certainly appreciate it. Otherwise I’m happy to do it on your behalf.
#23 / Jan 14, 2011 4:54am
Thanks for confirming Ingmar, I reported the bug here: https://support.ellislab.com/bugs/detail/15016/
#24 / Jan 14, 2011 10:05am
Thank you very much, it’s appreciated.
#25 / Feb 05, 2011 2:47am
I just ran into this. Any chance this bug was fixed in the 2.1.4 beta?
#26 / Feb 05, 2011 9:27am
The bug has status “Fixed in Beta” so it should be. But the beta is not for production sites so I’m waiting for the next release myself.
#27 / Feb 05, 2011 5:23pm
Ok, I’ll check it out on local install. Thanks!
#28 / Feb 07, 2011 3:09am
Good stuff. I am going to close this one out for now as it is fixed in beta. Feel free to start a new thread if you have any more questions.