[buddypress-trac] [BuddyPress Trac] #5336: Add "manage invitations" pane to group admin screen
buddypress-trac
noreply at wordpress.org
Mon Feb 24 19:18:51 UTC 2014
#5336: Add "manage invitations" pane to group admin screen
-----------------------------------------+--------------------
Reporter: dcavins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.0
Component: Groups | Version: 1.9.1
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback |
-----------------------------------------+--------------------
Comment (by dcavins):
I've created ticket #5423 to cover pagination.
On the question of optionally scoping the `bp_group_has_invites()` loop to
show all invitations, I was thinking that I could pass in a user ID of 0
or null, but that seems kind of poor. Would it be reasonable to add an
optional argument like `scope` that could be set to `user` (which would
match the current behavior) or `admin` (which would remove the user
scope)? So the function would start out with:
{{{
bp_group_has_invites( $args = '' ) {
global $bp, $invites_template, $group_id;
$defaults = array(
'group_id' => false,
'user_id' => bp_loggedin_user_id(),
'scope' => 'user'
);
}}}
Please let me know if a change like that would be OK.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5336#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list