Ticket #227: 01217_invite_link.diff
| File 01217_invite_link.diff, 1.3 kB (added by rho, 1 year ago) |
|---|
-
mod/community/lib.php
old new 141 141 'user_type' => 'community'); 142 142 143 143 // Add membership requests to the personal network page 144 if (defined("context") && context == "network" && $page_owner == $_SESSION['userid']) {144 if (defined("context") && context == "network" && isloggedin() && $page_owner == $_SESSION['userid']) { 145 145 $PAGE->menu_sub[] = array( 'name' => 'membership:invites', 146 146 'html' => a_href( "{$CFG->wwwroot}{$username}/communities/invitations", 147 147 __gettext("Community invitations"))); -
mod/invite/lib.php
old new 39 39 function invite_pagesetup() { 40 40 global $PAGE; 41 41 42 if (defined('context') && context == 'network' ) {42 if (defined('context') && context == 'network' && isloggedin()) { 43 43 if (!maxusers_limit()) { 44 44 $PAGE->menu_sub[] = array( 'name' => 'invite:friend', 45 45 'html' => a_href(get_url(null, 'invite::invite'),
