installed module on 2 drupal v6 forums but in one forum users can´t see the edit button on their own comments.
The other forum is ok and button is there. both have the same settings.
Any idea?

Comments

snufkin’s picture

There is a new permission introduced for this. From the project frontpage:

Introduce a new edit own comments permission. Warning: edit own comments is disabled by default. Without this permission comment editing is disabled if the module is enabled, so if you want to allow editing comments (which is core's default), you should enable this permission after enabling the module.

Wolfgang62’s picture

permission are on both forums on. we found out that, if we import 2000 comments in the production site, the button is visible, if we import 5000, the button is gone.
3000 more or less is the limit...

snufkin’s picture

Hmm so you are importing comments. Any chance you are changing the mode the comments are listed in the process?

The relevant piece in the code is the following:

// Hide the edit link if flat listing is enabled. Valid for all users without administer comment permission.
if (!user_access('administer comments') && $node->advanced_comment['edit_link'] && _advanced_comment_is_flat($mode)) {
  unset($links['comment_edit']);
}
// Introducing new edit own comment permission. Hide the edit link if the user doesn't have proper access.
if (!(user_access('edit own comments') || user_access('administer comments'))) {
  unset($links['comment_edit']);
}

so the only way the edit link is gone is if a) the user doesn't have access to the edit own comments permission, b) the comment list is not flat. It is also off if the hide edit link has been turned on.

Wolfgang62’s picture

>b) the comment list is not flat.<

Thanks a lot for this hint. In the comment module I did "flatten comments", now everything is working.

Thanks again!

Wolfgang62’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.