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-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.