Skip to:

Opened 8 years ago

Last modified 7 years ago

#3020 new enhancement

Auto-role setting is applied even when unticked

Reported by: gmsb's profile gmsb Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.5.10
Component: API - Roles/Capabilities Keywords: reporter-feedback needs-patch needs-screenshots


The "Auto Role Automatically give registered visitors the XYZ forum role." field is being applied even when the checkbox is un-ticked.

I was able to replicate this across dev/staging/production, the state of the checkbox was ignored in all 3 instances.

Change History (1)

#1 @johnjamesjacoby
7 years ago

  • Component changed from General to API - Roles/Capabilities
  • Keywords reporter-feedback needs-patch needs-screenshots added
  • Milestone changed from Awaiting Review to 2.7
  • Type changed from defect to enhancement

I'm not able to duplicate this on 2.6.

A few things do happen here, by design:

  • On plugin activation, the user who activated bbPress is automatically made a Keymaster. This is to allow someone to actually create forums and moderate topics out of the box. This skips that setting.
  • With this box checked, logged in users automatically get the default role saved in the database for that site.
  • With this box unchecked, logged in users automatically receive a role based on bbp_get_user_role_map(), which maps administrator to bbp_get_keymaster_role() and everyone else to bbp_get_default_role().

Maybe we need more options here? Or an option to do nothing basically?

Note: See TracTickets for help on using tickets.