Skip to:
Content

BuddyPress.org


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.