Advertisement:

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004488SMF 2.1[SMF 2.0] Generalpublic2010-10-01 22:512014-02-08 20:53
ReporterKays 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionsuspended 
PlatformOSOS Version
Summary0004488: Topic starter is able to delete posts in a locked topic
DescriptionAlthough a topic starter can not edit any posts in a topic when it is locked. They are still able to delete posts if permissions are set to do so.

I have provided a fix in the following topic. Although it is for 1.1.11 the changes are similar for 2.0 as the code hasn't changed much.

http://www.simplemachines.org/community/index.php?topic=403142.0 [^]
Steps To ReproduceUsing a regular user account, with permission to "delete own", create a topic with several posts. Then lock it with an admin or moderator account. Now viewing the topic with the user account the button is still there to delete one's posts. And it still works.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0013102)
Aleksi "Lex" Kilpinen (SMF Friend)
2010-10-02 04:13

Honestly, I don't think this is a bug. If one is allowed to delete his own posts, then that should be allowed wether or not the topic is locked. I can see the reasoning behind not allowing to edit posts in a locked topic though, but this is different.
(0013103)
groundup (SMF Friend)
2010-10-02 12:54

I agree with Kays.
(0013108)
Aleksi "Lex" Kilpinen (SMF Friend)
2010-10-03 03:21

...because?

I do think the permission is "delete own" not "delete own, unless in a locked topic".

There are scenarios where a forum might be (legally even) expected to allow one to delete their own posts, and I don't think it would make a difference if the topic was locked or not.

The reason that editing posts in a locked topic is not allowed, is not to allow discussion to continue by editing posts, as far as I've understood - and I agree it should be like that. Deleting posts in a locked topic would not allow discussion to continue though.
(0013129)
Norv (SMF Friend)
2010-10-07 04:59

Well, TBH to me it sounds better if we keep it consistent. If a topic is locked, then it practically means to me that it's now read-only for any purposes. (except for moderators). Delete_own is not a moderation permission, so IMHO, like edit, it shouldn't apply.

Open to discussion though. If it really makes sense to people to have the ability to delete, but not to edit, it's good to know.
(0013133)
Aleksi "Lex" Kilpinen (SMF Friend)
2010-10-07 05:58

Well, I believe I just presented you with a real reason to allow delete, but not edit.
A board may be obligated to allow people to remove something they have posted,
and delete_own makes it possible at the moment, while edit_own would allow it as well, but would also make it possible to continue a discussion by editing existing posts.
(0014845)
Suki (Developer)
2013-10-10 21:59

This still happens on 2.1? what should we do about it?

Leave the current behavior?
Force the lock and disallow the topic owner form deleting it?
Set a new permission "delete_own_locked" and applied when this particular case arise?
(0014964)
arrowtotheknee (Developer)
2014-02-08 20:53

Moved to https://github.com/SimpleMachines/SMF2.1/issues/1379 [^] in the interests of consolidation.
MantisBT 1.2.8 (Modified)[^] Copyright © 2000 - 2010 Mantis Group