Skip to:
Content

bbPress.org

Changeset 4064


Ignore:
Timestamp:
07/07/2012 12:50:47 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Remap 'read' capability to moderator and lesser roles, since it will be needed by bbPress to read most things.
  • Fixes #1887.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-caps.php

    r3966 r4064  
    188188
    189189        /** Publishing ********************************************************/
    190            
     190
    191191        case 'publish_forums'  :
    192192        case 'publish_topics'  :
     
    444444            $caps = array(
    445445
     446                // Read
     447                'read',
     448
    446449                // Forum caps
    447450                'read_private_forums',
     
    486489        // bbPress Participant Role
    487490        case bbp_get_participant_role() :
    488            
     491
    489492        // Any other role
    490493        default :
    491494
    492495            $caps = array(
     496
     497                // Read
     498                'read',
    493499
    494500                // Forum caps
     
    655661/**
    656662 * Can the current user see a specific UI element?
    657  * 
     663 *
    658664 * Used when registering post-types and taxonomies to decide if 'show_ui' should
    659665 * be set to true or false. Also used for fine-grained control over which admin
Note: See TracChangeset for help on using the changeset viewer.