OP can change the title/category after the Edit Window Period


(cpradio) #1

It seems the OP of a topic can alter the title/category/tags of their topic any time, even outside of the edit window time period.

Repro steps:

  1. As a TL 2 or below user, create a topic in a specific category
  2. Wait till edit window has expired (you may need to temporarily set the edit window to a smaller time frame)
  3. Refresh the page the topic is on
  4. Note that the edit icon for the post is missing (designating you are outside of the edit window)
  5. Note that the edit icon is still available on the Title/Category/Tags area
  6. Click on the edit icon and change the title, category, tags, whatever and save them.

Expected:
Edit icon next to topic title should also disappear if the edit window has expired

Actual:
Edit icon continues to appear next to topic title


User can move a Topic outside of a Restricted Category
(cpradio) #2

Happens on try.discourse.org too


(Régis Hanol) #3

I think you are confusing the “ninja edit window” and the “post edit time limit” settings.

The former is used to deal with versions of the post while the later is used to prevent users from editing/deleting their post after a certain amount of time.

Right now, that setting only applies to post. Which mean that users can change the title, category and tags of their topics with no limit.


(cpradio) #4

So that is intentional? Seems like an odd decision to let a user constantly change the category of their topic including adding/removing tags. So maybe this isn’t a bug but more of a feature to let the topic use the post edit time limit?


(Régis Hanol) #5

Yeah, doesn’t really make sense. Here’s a fix :snake:


(Régis Hanol) #6