forked from science-ation/science-ation
remove the not used special awards section
This commit is contained in:
parent
b1940cbb9a
commit
f31cc5c5fa
31
api.php
31
api.php
@ -1152,37 +1152,6 @@ switch($request[0]) {
|
||||
$ret['status'] = 'ok';
|
||||
break;
|
||||
|
||||
case 'specialawards':
|
||||
switch($request[2]){
|
||||
/* APIDOC: project/specialawards/view
|
||||
description(view the special awards available, flagged as whether or not they're selected for this user's project.)
|
||||
*/
|
||||
case 'view':
|
||||
$u = user_load($_SESSION['users_id']);
|
||||
$projectId = getProjectId($u['registrations_id']);
|
||||
if($projectId !== null){
|
||||
$ret['status'] = 'ok';
|
||||
$ret['awards'] = getAwardListing($projectId);
|
||||
}else{
|
||||
$ret['status'] = 'error';
|
||||
$ret['error'] = 'could not load project for registriation id #' . $u['registrations_id'];
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
/* APIDOC: project/specialawards/edit
|
||||
description:(update the special awards assigned to this project)
|
||||
post(awards array)
|
||||
description(expects an array in the
|
||||
*/
|
||||
case 'edit':
|
||||
//$nominations = json_decode($_POST['awards'], true);
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case 'mentor':
|
||||
switch($request[2]){
|
||||
/* APIDOC: project/mentor/edit
|
||||
|
Loading…
Reference in New Issue
Block a user