mirror of https://github.com/BOINC/boinc.git
Drupal: Added login link for anonymous users, they are directed to login when trying to create a new team.
https://dev.gridrepublic.org/browse/DBOINCP-258
This commit is contained in:
parent
76b9062ae6
commit
b1057a12e5
|
@ -796,8 +796,9 @@ function boincteam_create_team_link_panel() {
|
||||||
$output .= ' <li class="first last tab">';
|
$output .= ' <li class="first last tab">';
|
||||||
if (isset($account->roles[$unrestricted_role])) {
|
if (isset($account->roles[$unrestricted_role])) {
|
||||||
$output .= l(bts('Create new team'), 'community/teams/add');
|
$output .= l(bts('Create new team'), 'community/teams/add');
|
||||||
}
|
} elseif ($account->uid <= 0) {
|
||||||
else {
|
$output .= l(bts('Login to create a new team'), 'user/login');
|
||||||
|
} else {
|
||||||
$min_credit_needed = variable_get('boinc_comment_min_credit', 0);
|
$min_credit_needed = variable_get('boinc_comment_min_credit', 0);
|
||||||
$credit_needed = $min_credit_needed - $account->boincuser_total_credit;
|
$credit_needed = $min_credit_needed - $account->boincuser_total_credit;
|
||||||
$output .= '[';
|
$output .= '[';
|
||||||
|
|
Loading…
Reference in New Issue