Use default role when none is set
|Reported by:||Denis-de-Bernardy||Owned by:|
|Severity:||normal||Keywords:||has-patch tested commit|
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.
Change History (7)
- Milestone 2.8 deleted
- Resolution set to invalid
- Status changed from new to closed