#2039 closed defect (bug) (fixed)
Undefined property $post_type->cap->read_private_forums
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.2.1 | Priority: | high |
| Severity: | major | Version: | 2.2 |
| Component: | API - Roles/Capabilities | Keywords: | |
| Cc: | kevinB |
Description
The following capability check in version 2.2 is not valid:
$caps = array( $post_type->cap->read_private_forums );
It should be:
$caps = array( $post_type->cap->read_private_posts );
This occurs in three functions:
- bbp_map_forum_meta_caps
- bbp_map_topic_meta_caps
- bbp_map_reply_meta_caps
Change History (4)
#1
@
13 years ago
- Component changed from General to Roles/Capabilities
- Milestone changed from Awaiting Review to 2.2.1
#4
@
13 years ago
- Cc kevinB added
- Severity changed from normal to major
Thanks for the fix. Bumping up severity since this bug makes it impossible to grant read access to private forums due to a null value in the required caps array. Private forums are listed but access attempts fail the current_user_can() check.
Just an FYI in case this affects your 2.2.1 release timing decision or other diagnoses. Your patch comment made the symptoms sound kinda trivial or uncertain.
Note: See
TracTickets for help on using
tickets.
(In [4445]) Capabilities: