Skip to content

Commit

Permalink
Allow site admins to access members' Send Invites tab
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Aug 2, 2013
1 parent 3f882c3 commit 30c1ca9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions by-email/by-email.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ function invite_anyone_access_test() {
if ( !is_user_logged_in() )
return false;

// The site admin can see all
if ( current_user_can( 'bp_moderate' ) ) {
return true;
}

if ( bp_displayed_user_id() && !bp_is_my_profile() )
return false;

Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ Additional details about the plugin can be found in the following languages:

== Changelog ==

= 1.0.24 =
* Allow the access to Send Invites to the site admin

= 1.0.23 =
* Adds sr_RS
* Fixes bug that prevented the admin options from appearing on some multisite setups
Expand Down

0 comments on commit 30c1ca9

Please sign in to comment.