mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 13:33:55 -07:00
Correct logic so that the global user can modify their decks.
This commit is contained in:
parent
acacbaa7a1
commit
7b01874459
1 changed files with 1 additions and 1 deletions
|
|
@ -345,7 +345,7 @@ int AbstractServerSocketInterface::getDeckPathId(const QString &path)
|
||||||
|
|
||||||
bool AbstractServerSocketInterface::deckListHelper(int folderId, int userId, ServerInfo_DeckStorage_Folder *folder)
|
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(
|
QSqlQuery *query = sqlInterface->prepareQuery(
|
||||||
"select id, name from {prefix}_decklist_folders where id_parent = :id_parent and id_user = :id_user");
|
"select id, name from {prefix}_decklist_folders where id_parent = :id_parent and id_user = :id_user");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue