Opened 12 months ago

Last modified 7 months ago

#20846 new defect (bug)

Multisite: Network Users can post comments without being members of the site

Reported by: Ipstenu Owned by:
Priority: normal Milestone: Awaiting Review
Component: Multisite Version: 3.0
Severity: normal Keywords: has-patch ux-feedback
Cc: xoodrew@…, marty@…

Description

This is probably an 'ever since inception' issue and I can replicate it on 3.4

Setup:

Have a user added to your network but not to a site (domain.com/test).

Set up domain.com/test to only allow registered users to comment. Remember, we've not added this new user to the site, just the network.

Log in as that user and go to domain.com/test

Oh look! You can comment as a 'registered' user.

This should be check for 'Is this a user and, if multisite, is this user a member of the site?'

It's that or the wording needs to be clearer that anyone registered on the network can comment.

Attachments (2)

20846.patch (562 bytes) - added by SergeyBiryukov 12 months ago.
20846.2.patch (1.3 KB) - added by SergeyBiryukov 12 months ago.

Download all attachments as: .zip

Change History (11)

  • Keywords needs-patch added

This indeed looks like a bug.

comment:2 follow-up: ↓ 9   nacin12 months ago

This is how MU functioned. I dunno. You're logged in. It'll say you're logged in (assuming you have cookies issued). This is often going to be expected behavior. Sounds like a filter, at most, to me.

  • Keywords has-patch added; needs-patch removed

20846.2.patch is an attempt to take care of XML-RPC comments as well. Also combines two strings with the same meaning.

comment:4 follow-up: ↓ 5   helenyhou12 months ago

Is there actually a way for an end user to join a network site if already registered on the network? If not, seems like that would need changing first, or else this would become extremely frustrating. "Register to comment! Oh no wait, you can't sign up, your email address is already in use."

comment:5 in reply to: ↑ 4   Ipstenu12 months ago

Replying to nacin:

This is how MU functioned. I dunno. You're logged in. It'll say you're logged in (assuming you have cookies issued). This is often going to be expected behavior. Sounds like a filter, at most, to me.

Then we should change the language to explain that restricting comments to logged in users means network users, and not per site. Right now, it's "Users must be registered and logged in to comment"

Replying to helenyhou:

Is there actually a way for an end user to join a network site if already registered on the network? If not, seems like that would need changing first, or else this would become extremely frustrating. "Register to comment! Oh no wait, you can't sign up, your email address is already in use."

Not without a plugin, at this time.

If we were going to change the code to be you have to be a member of the site, then it shouldn't behave 100% like a logged out user. Having a way to 'join' a site would be very nice to build in as an option. Multisite locks 'registration' down to the network admin, though. If I turn off signups, no site has them. So it would have to be a per-site option 'allow registered network users to join your site...'

And now we've added layers on layers ;)

  • Component changed from Comments to Multisite
  • Keywords ux-feedback added
  • Cc xoodrew@… added
  • Cc marty@… added

comment:9 in reply to: ↑ 2   wpmuguru7 months ago

Replying to nacin:

This is how MU functioned.

Consider a single WP install as a network of one site. In a test single site, create a test user then remove the user's role. Set the discussion settings to registered users can comment. The test user can still comment even though they have no role on the site. The behavior in the network is the same. It isn't a test that the user has a role but a test that the user has a valid account.

Note: See TracTickets for help on using tickets.