Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: NetFlag on March 29, 2012, 02:58:50 PM

Title: Guest can not reply in own thread
Post by: NetFlag on March 29, 2012, 02:58:50 PM
Hallo @ all,
my guests have permission to post new topics (moderated). The problem. They can not reply in a topic created by themself or other guest.

Error message:
You are not allowed to post replies even to your own topics in this board.
Title: Re: Guest can not reply in own thread
Post by: IchBin™ on March 29, 2012, 03:22:45 PM
Did you check the permission to allow them to reply to topics?
Title: Re: Guest can not reply in own thread
Post by: NetFlag on March 29, 2012, 04:45:39 PM
Yes, any topic is set. Replying where topicstarter is a member works well. Only topics started by guests return in error.
Title: Re: Guest can not reply in own thread
Post by: IchBin™ on March 29, 2012, 08:50:15 PM
Do you have the option to deny permissions set to on? If so, do you have any groups set to deny this permission?

What version of SMF?

What mods do you have installed?
Title: Re: Guest can not reply in own thread
Post by: NetFlag on March 30, 2012, 10:38:48 AM
Quote from: IchBin™ on March 29, 2012, 08:50:15 PM
Do you have the option to deny permissions set to on? If so, do you have any groups set to deny this permission?
No I have not.

Quote from: IchBin™ on March 29, 2012, 08:50:15 PM
What version of SMF?
2.0.2

Quote from: IchBin™ on March 29, 2012, 08:50:15 PM
What mods do you have installed?
No Mods installed. Corefeatures enough already.  ;)

The problem appears only when permissions set as shown below:
Post replies to topics, but hide until approved: checked
Post replies to topics, without requiring approval: unchecked

Maybe someone can reproduce the error ?
Title: Re: Guest can not reply in own thread
Post by: emanuele on March 30, 2012, 11:57:58 AM
In order to test it effectively let's see if I understood well:
Anything else?

Expected behaviour: guests can reply to any topic.
Observed behaviour: guests can open new topics, but cannot reply.
Correct?
Title: Re: Guest can not reply in own thread
Post by: IchBin™ on March 30, 2012, 11:59:28 AM
Looks like a bug to me. I noticed that if you select both options, the post is approved and posted anyway.
Title: Re: Guest can not reply in own thread
Post by: emanuele on March 30, 2012, 12:11:15 PM
Quote from: IchBin™ on March 30, 2012, 11:59:28 AM
Looks like a bug to me.
I imagined what was wrong looking at the post moderation page.
I think it's a pretty funny behaviour due to the assumption that SMF doesn't know how to recognize "own" topics from guests and so the "own" permissions should be ignored.
But it's not.

"Workaround": go in post moderation and set for "reply own" the "with moderation" option.
Funny thing is that every time you change the permissions from the permission page for guests this will be reset to "cannot create" (of course because from the permission page is in force the rule "SMF cannot recognize 'own' topics for guests".

Quote from: IchBin™ on March 30, 2012, 11:59:28 AM
I noticed that if you select both options, the post is approved and posted anyway.
Well...that's a misconfiguration... :P
Title: Re: Guest can not reply in own thread
Post by: IchBin™ on March 30, 2012, 12:24:24 PM
haha true, but those two options completely conflict with each other IMO.

You have the permission to allow them to post to any topic without moderation. Or you have the permission to require them to be moderated. If both are selected, I would hope that moderation is given priority. ;)
Title: Re: Guest can not reply in own thread
Post by: emanuele on March 30, 2012, 12:28:17 PM
You are right, I think I raised a similar point somewhere else (no idea where... lol)
Title: Re: Guest can not reply in own thread
Post by: NetFlag on March 30, 2012, 12:46:47 PM
Quote from: emanuele on March 30, 2012, 12:11:15 PM
.....
"Workaround": go in post moderation and set for "reply own" the "with moderation" option.
.....

Thanks alot. Not easy  to hit on it. Now its clear! Problem solved!

Title: Re: Guest can not reply in own thread
Post by: Norv on April 07, 2012, 07:02:43 PM
Good to hear you got it solved, NetHunter, and thanks for bringing this case to our attention!

Quote from: IchBin™ on March 30, 2012, 12:24:24 PM
haha true, but those two options completely conflict with each other IMO.

You have the permission to allow them to post to any topic without moderation. Or you have the permission to require them to be moderated. If both are selected, I would hope that moderation is given priority. ;)

Apart from the interesting situation here. :)
On this particular point, I'm not sure I'd expect moderation, since other behaviors are: when a user has a permission from a group, and doesn't have that permission from elsewhere, the result it that they have the permission. You have the right from somewhere => you have the right. (i.e. the right to post without moderation).
The exception is deny permissions, only: only by using 'deny' of a permission one had, the result is they don't have it. (or almost only, I can think of another tricky case).

I'm not sure I can think at other examples contradicting this behavior: if you have the right from somewhere, then you have it, unless explicitly denied.

That said... I think these two would be better off mutually exclusive at the level of the user interface.
Title: Re: Guest can not reply in own thread
Post by: emanuele on April 09, 2012, 08:14:25 AM
Quote from: N. N. on April 07, 2012, 07:02:43 PM
I'm not sure I can think at other examples contradicting this behavior: if you have the right from somewhere, then you have it, unless explicitly denied.
Yep, I think that in the general SMF context the behaviour is the expected.

Quote from: N. N. on April 07, 2012, 07:02:43 PM
That said... I think these two would be better off mutually exclusive at the level of the user interface.
Yep, that would be nice I think.
Additionally we should not assume guests cannot reply to "own" topics.

Marking this as valid.
Title: Re: Guest can not reply in own thread
Post by: ziycon on January 12, 2014, 05:15:59 PM
Moved to github.
https://github.com/SimpleMachines/SMF2.1/issues/1179