Skip to:
Content

bbPress.org

Changeset 6265


Ignore:
Timestamp:
01/30/2017 03:29:52 AM (8 years ago)
Author:
netweb
Message:

Capabilities: Fix inline docs copy pasta introduced in [5852]

See #2685

Location:
trunk/src/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/capabilities.php

    r6087 r6265  
    166166                    $caps[] = 'moderate';
    167167
    168                 // User is author so allow edit if not in admin
     168                // User is author so allow delete if not in admin
    169169                } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
    170170                    $caps[] = $post_type->cap->delete_posts;
  • trunk/src/includes/topics/capabilities.php

    r6056 r6265  
    188188                    $caps[] = 'moderate';
    189189
    190                 // User is author so allow edit if not in admin
     190                // User is author so allow delete if not in admin
    191191                } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
    192192                    $caps[] = $post_type->cap->delete_posts;
Note: See TracChangeset for help on using the changeset viewer.