Skip to:
Content

BuddyPress.org

Changeset 4469


Ignore:
Timestamp:
06/07/2011 02:25:46 PM (15 years ago)
Author:
boonebgorges
Message:

Use bp_activity_user_can_delete() in activity delete action function and in AJAX handler

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-actions.php

    r4396 r4469  
    9595
    9696    // Check access
    97     if ( empty( $activity->user_id ) || !is_super_admin() && $activity->user_id != bp_loggedin_user_id() )
     97    if ( !bp_activity_user_can_delete() )
    9898        return false;
    9999
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r4400 r4469  
    247247
    248248    // Check access
    249     if ( !is_super_admin() && ( $activity->user_id != bp_loggedin_user_id() ) )
     249    if ( !bp_activity_user_can_delete() )
    250250        return false;
    251251
Note: See TracChangeset for help on using the changeset viewer.