mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 17:11:15 +02:00
2024-08-16 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the RDXport service that couldcause the IMPORT call to return a 'no such cart' error when trying to create a new cart. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -102,15 +102,21 @@ void Xport::Import()
|
||||
//
|
||||
// Verify User Perms
|
||||
//
|
||||
if(RDCart::exists(cartnum)) {
|
||||
if(!rda->user()->cartAuthorized(cartnum)) {
|
||||
XmlExit("No such cart",404,"import.cpp",LINE_NUMBER);
|
||||
if(create&&(cartnum==0)&&(cutnum==0)) {
|
||||
if(!rda->user()->groupAuthorized(group_name)) {
|
||||
XmlExit("No such group",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(create) {
|
||||
if(!rda->user()->groupAuthorized(group_name)) {
|
||||
XmlExit("No such group",404,"import.cpp",LINE_NUMBER);
|
||||
if(cartnum==0) {
|
||||
XmlExit("No such cart",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
if(cutnum==0) {
|
||||
XmlExit("No such cut",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
if(RDCart::exists(cartnum)) {
|
||||
if(!rda->user()->cartAuthorized(cartnum)) {
|
||||
XmlExit("No such cart",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user