mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 14:43:30 +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:
parent
9bef1ee001
commit
09c7c82c26
@ -24852,3 +24852,6 @@
|
||||
2024-08-12 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Incremented the package version to 4.3.0int3.
|
||||
* Incremented the python api version to 4.3.0.post3.
|
||||
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.
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user