Loading src/api.cpp +8 −4 Changes for src/api.cpp: 8 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -70,18 +70,22 @@ namespace authdb { GpoData::Allow allow; bool alowed = false; bool alowed = gpdat.getGpoValue(); gpdat.getAlowed(&allow); uuid uid; _SessionData->getUid(uid); for(size_t ii =0; ii<allow.count; ++ii ){ if(uuid(id)==allow.uid[ii]){ if(uid==allow.uid[ii]){ if(alowed) alowed=false; else alowed=true; } } alowed = (alowed & !gpdat.getGpoValue()); json_object *respid=json_object_new_object(); json_object *value=json_object_new_object(); Loading Loading
src/api.cpp +8 −4 Changes for src/api.cpp: 8 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -70,18 +70,22 @@ namespace authdb { GpoData::Allow allow; bool alowed = false; bool alowed = gpdat.getGpoValue(); gpdat.getAlowed(&allow); uuid uid; _SessionData->getUid(uid); for(size_t ii =0; ii<allow.count; ++ii ){ if(uuid(id)==allow.uid[ii]){ if(uid==allow.uid[ii]){ if(alowed) alowed=false; else alowed=true; } } alowed = (alowed & !gpdat.getGpoValue()); json_object *respid=json_object_new_object(); json_object *value=json_object_new_object(); Loading