Commit f501204f authored by jan.koester's avatar jan.koester
Browse files

fixed

parent a08b00e2
Loading
Loading
Loading
Loading
Loading
+4 −8
Changes for src/admin.cpp: 4 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -1463,12 +1463,8 @@ namespace authdb {
                            if( strcmp(curdispo->getKey(),"name")==0 &&
                                curdispo->getValue()!=nullptr){
                                if( strcmp(curdispo->getValue(),"gpoid")==0 ){
                                    uuid_t gpouuid;
                                    std::copy(
                                        curformdat->Value.begin(),
                                        curformdat->Value.end(),
                                        &gpouuid[0]
                                    );
                                    curformdat->Value.push_back('\0');
                                    uuid gpouuid(curformdat->Value.data());
                                    gpodat = std::make_shared <GpoData>(gpouuid);
                                    break;
                                }
@@ -1497,8 +1493,8 @@ namespace authdb {
                                    else
                                        gpodat->setGpoValue(true);
                                }else if(strcmp(curdispo->getValue(),"gpoingroup")==0 ){
                                    uuid_t gal;
                                    std::copy(curformdat->Value.begin(),curformdat->Value.end(),&gal[0]);
                                    curformdat->Value.push_back('\0');
                                    uuid gal(curformdat->Value.data());
                                    allow.emplace_back(gal);
                                }
                            }