SMF 2.0.19 has been released! Please update. Read more.

Main Menu

[FIX] Quick inLine-Edit on locked topics not possible

Started by DracoBlue, October 28, 2007, 05:29:29 PM

Previous topic - Next topic



A member of my board noticed that the quickedit in-line button doesn't work on closed topics.

0. Installation of SMF 1.0, patch it to 1.1.4.
1. Create a new topic.
2. Lock it.
3. Press the QuickEdit-Button right after the topics body.
-> won't work.

I found out that the reason is that the rights aren't properly check in the QuoteFast-Procedure in Post.php. [nonactive] is a (not that well suiting but still working fix):

Replace line 2050f (containing the following):
(!isset($_REQUEST['modify']) || (!empty($moderate_boards) && $moderate_boards[0] == 0) ? '' : '
AND (t.locked = 0' . (empty($moderate_boards) ? '' : ' OR b.ID_BOARD IN (' . implode(', ', $moderate_boards)) . ')')

And replace it with:

Now put right after the
in line 2059 the following:
if (!empty($row['locked'])) isAllowedTo('moderate_board');

Am not sure if thats also in the 2.0 Beta 1, but I got this problem since 1.1 release.

Kind regards,
  Jan (DracoBlue)

Edit, Testing.. [nonactive] • [nonactive]  • [nonactive]  • [nonactive]  • [nonactive] • [nonactive] • [nonactive]


I can't reproduce this on a fresh install of SMF 1.1.4
Can't reproduce here either on 2.0
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Join us on IRC


Hello SleePy,

thanks for the fast reply. I checked the real 1.1.4 files again and noticed that there was a line called:
$moderate_boards = boardsAllowedTo('moderate_board');
which wasn't in my 1.0->patched to->1.1->patched to 1.1.4 version of SMF. I asume that this line wasn't automaticly added on the patches, but was available in the install-package.

So I am not sure how to 'fix' that or if something with my update packages was wrong. But since 1.1 was released a long time ago, I am pretty sure that not much guys will have that issue.

Kind regards,
  Jan (DracoBlue) [nonactive] • [nonactive]  • [nonactive]  • [nonactive]  • [nonactive] • [nonactive] • [nonactive]