[buddypress-trac] [BuddyPress Trac] #7048: Move permission checks in `bp_activity_screen_single_activity_permalink` into new function

buddypress-trac noreply at wordpress.org
Wed Jan 10 18:59:01 UTC 2018


#7048: Move permission checks in `bp_activity_screen_single_activity_permalink`
into new function
--------------------------------------+---------------------
 Reporter:  DJPaul                    |       Owner:  djpaul
     Type:  enhancement               |      Status:  closed
 Priority:  high                      |   Milestone:  3.0
Component:  Activity                  |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |
--------------------------------------+---------------------
Changes (by djpaul):

 * owner:   => djpaul
 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11806"]:
 {{{
 #!CommitTicketReference repository="" revision="11806"
 Activity: add function to check if a user has access to a single activity.

 This change extracts the existing logic from
 `bp_activity_screen_single_activity_permalink()` into a new function,
 allowing it to be used in multiple places, such as the REST API, or a WP-
 CLI extension.

 Fixes #7048

 Props espellcaste
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7048#comment:30>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list