User with trust level 2 can't edit his own post

AI-generated summary

A user with trust level 2 on a Discourse instance reported they couldn’t edit an old post, despite being able to edit new ones. jmsachs discovered the issue was due to the post edit time limit setting in the site settings, which was set to 86400 seconds (1 day). cpradio and codinghorror helped identify the setting, and jmsachs confirmed it was located under /admin/site_settings/category/posting. Initially, jmsachs encountered an error when trying to set the limit to 0, but realized it was due to being impersonating the user in another tab, which interfered with the admin action. After resolving the confusion, setting the limit to 0 worked, allowing the user to edit old posts.

I admin a Discourse instance. A user with trust level 2 contacted me because he can’t edit his own post. But I have the requirement to edit posts as level 0. What could be going wrong?

Important information: The post in question is two months old. He can edit brand new posts. Is there a setting that locks edits after a certain time?

What is the post edit time limit set to?

ha, I just noticed the same thing. Where is that located?

Found it! it’s in /admin/site_settings/category/posting

Yep, It was set to 86400; I never noticed because I’m an admin so that doesn’t apply to me.

Search your site settings for that string and you’ll find it.

Oh cool, I didn’t know the site settings were filterable by a search string.

Hmm. I get an error when I try to change the post edit time limit to 0:

The requested URL or resource could not be found.

Was this a bug that was fixed in the last year or so? We’re a little behind in upgrading our Discourse instance.


UGH never mind, I was impersonating this user in another tab and it confused my admin operation in the first tab

Setting it to 0 works!