Allow editing own unreplied-to comments even without permission

lewmich - August 26, 2009 - 17:10
Project:Forum Access
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Drupal has built-in permission for editing own comments until someone replied to that comment.

After installing Forum Access module, comments in a Forum cannot be edited by owners. Disabling Forum Access restores possibility to edit own comments.

I set following permissions:
- in Forum Access - "view" and "post" rights for authenticated users in /admin/content/forum/edit/forum/[num]

What is more, when enabling "edit posts" right in Forum Access - authenticated users gets permission to edit and delete ALL comments (sent by different users).

I did not find solution for this problem. Anyone can help?

#1

lewmich - August 26, 2009 - 17:12
Title:Global built-in permission "edit own comment" rights overridden» Global built-in permission "edit own comment" overridden

#2

salvis - August 28, 2009 - 00:13
Category:bug report» support request

As it says under Permissions information:

Note that users need

  • the post comments and (probably) post comments without approval permission AND Post to be able to post comments/replies;

Also, Edit is 'edit', not 'edit own.'

Everything is working as designed and documented.

#3

lewmich - August 28, 2009 - 16:55

1. In my case edit also gives rights to delete replies - which should depend on delete permission in Forum Access - this is a BUG in my opinion. Isn't it?

2. In my opinion, when users are not granted in Forum Access with edit permission (permission to edit all posts), they should still be able to edit their own replies - according to global, standard Drupal settings for comments. This functionality should not be shut down by Forum Access module. Is it a bug or functionality request?

Maybe there is something specific in my Drupal instalation that it works this unusual way... But I have not found anything...

I will appreciate your help!!

#4

salvis - September 3, 2009 - 08:36

Yes, #1 would be a bug — I'll look into it.

#2 is a feature request, but so far it hasn't found overwhelming support.

I'm at DrupalCon right now, give me some more time...

#5

SuperContra - September 4, 2009 - 21:40

Thanks for informing me it is a BUG. I went crazy trying to figure what was wrong with my site.

#6

salvis - September 4, 2009 - 23:59
Category:support request» bug report

Indeed, I find that the [Delete] button is visible, even though the user only has Edit rights. However, it doesn't actually work: I get an Access Denied message, when I click on it. IOW, this is a cosmetic issue, but it still needs to be fixed, of course.

#7

lewmich - September 10, 2009 - 22:34

Thanks Salvis for your reply. I hope that it will be possible to fix this bug.

I will also really appreciate if it will be possible to let users edit their own comments. As I already said it is a standard, global drupal permission and in my opinion it should not be overridden by the Forum Access module.

Thanks for help!

m.

#8

flebas - September 30, 2009 - 22:06

Hello,

I also would appreciate to keep "edit own comment" permission working with forum access.

Regards,
Frederic

#9

salvis - October 4, 2009 - 20:19
Title:Global built-in permission "edit own comment" overridden» Ability to edit own unreplied-to comments lost

I also would appreciate to keep "edit own comment" permission working with forum access.

Is the edit own comment permission not working?

I'm under the impression that the OP was referring to Drupal always allowing to edit your own comment as long as no one had replied to it, irrespective of the edit own comment permission. I haven't actually verified yet that Drupal (without FA) really does behave that way.

I've corrected the title, since this is not about a permission at all.

@flebas: if you really mean "permission", then please open a new thread.

#10

salvis - October 4, 2009 - 22:50
Title:Ability to edit own unreplied-to comments lost» Allow editing own unreplied-to comments even without permission
Category:bug report» feature request

I've just committed a fix that removes the unusable [Delete] button (among other things). Give it up to 12h to be repackaged.

This removes the bug part of this issue. What remains is a feature request — I'm still working on clarifying the title...

(Having more than one issue in a single issue thread is a pain!)

#11

salvis - October 7, 2009 - 22:05
Category:feature request» bug report
Status:active» fixed

#597616: Edit link not displayed on own comments made me realize that it's a bug after all.

Committed to 6.x-1.x-dev — give it up to 12 hours to be repackaged, and let us know how it works.

#12

System Message - October 21, 2009 - 22:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.