mirror of https://github.com/BOINC/boinc.git
Web: make TEAM_CREATE_NEED_CREDIT work for team-create RPC too
This commit is contained in:
parent
dce6254411
commit
6aebbdb213
|
@ -42,6 +42,12 @@ if (!$user) {
|
||||||
xml_error(ERR_DB_NOT_FOUND);
|
xml_error(ERR_DB_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (@constant('TEAM_CREATE_NEED_CREDIT')) {
|
||||||
|
if ($user->total_credit == 0) {
|
||||||
|
xml_error(-1, "no credit");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$name = $_GET["name"];
|
$name = $_GET["name"];
|
||||||
if (strlen($name) == 0) {
|
if (strlen($name) == 0) {
|
||||||
xml_error(-1, "must set team name");
|
xml_error(-1, "must set team name");
|
||||||
|
|
Loading…
Reference in New Issue