2017-03-30 Fred Gleason <fredg@paravelsystems.com>

* Changed the result code of the 'AddCart' service when the cart
	already exists from '403' to '400'.
	* Changed the result code of the 'EditCart' service when attempting
	to set a forced length on a macro cart from '403' to '400'.
	* Changed the result code of the 'EditCart' service when attempting
	to set a forced length outside of the valid range from '403' to '400'.
	* Changed the result code of the 'Export' service when attempting
	to export from a cut with no audio content from '403' to '404'.
	* Changed the '401' result code of the 'EditCart' service to be 403.
	* Changed the '401' result code of the 'DeleteAudio' service to be 403.
	* Changed the '401' result code of the 'Export' service to be 403.
This commit is contained in:
Fred Gleason
2017-03-30 11:38:18 -04:00
parent 36fa10802a
commit 11a6609876
5 changed files with 26 additions and 14 deletions

View File

@@ -101,10 +101,10 @@ void Xport::Import()
}
}
if(!xport_user->editAudio()) {
XmlExit("Unauthorized",401);
XmlExit("Forbidden",403);
}
if(create&&(!xport_user->createCarts())) {
XmlExit("Unauthorized",401);
XmlExit("Forbidden",403);
}
//