#9339 closed defect (bug) (invalid)
Use default role when none is set
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.7 |
| Component: | Users | Keywords: | has-patch tested commit |
| Focuses: | Cc: |
Description
While playing with BBPress and trying to make it integrate with WP, I ran into a bug.
Basically, user registers through BBPress, then tries to log into WP, and gets an error in the dashboard: Not enough permissions.
Reason is obvious: he has no role defined. Only after logging into BB does his role get set. That's fine in some cases, but not always. For instance, I've two sites that share the database's users table, and I'd like to have different roles for newly created users on the two sites (in the members' area site, they're subscribers; on the other site they're contributors).
The expected behavior would be for WP to check, whenever a user logs in, whether that user has a role. And, if that users has no role, he should be assigned the default role.
Attachments (1)
Change History (7)
#5
@
17 years ago
- Milestone 2.8 deleted
- Resolution set to invalid
- Status changed from new to closed
Not convinced by this.
What happens if the WP site have user-registration disabled (which is the default).
I think the role creation in this case should happen at the bbPress end when the user is registered probably using a bbPress plugin to get this behaviour.
commit? wontfix?