Correct logic so that the global user can modify their decks.

This commit is contained in:
root 2020-09-28 10:37:18 -04:00
parent acacbaa7a1
commit 7b01874459

View file

@ -345,7 +345,7 @@ int AbstractServerSocketInterface::getDeckPathId(const QString &path)
bool AbstractServerSocketInterface::deckListHelper(int folderId, int userId, ServerInfo_DeckStorage_Folder *folder)
{
int offset = (servatrice->getGlobalDecksID() == userId) ? globalDeckOffset : 0;
int offset = (userInfo->id() != userId) ? globalDeckOffset : 0;
QSqlQuery *query = sqlInterface->prepareQuery(
"select id, name from {prefix}_decklist_folders where id_parent = :id_parent and id_user = :id_user");