Closed GregoryBolshakov closed 1 year ago
Hey @GregoryBolshakov we don't allow clients other than the current user to write non-user storage objects (i.e., storage objects without a user id.) This is intentional for security reasons. In order to do that, you have to use our server framework which does allow you to pass an empty string as the user id: https://heroiclabs.com/docs/nakama/server-framework/typescript-runtime/function-reference/#storageWrite
PUBLIC_READ just means it's public, but is still associated with the user.
Hi @lugehorsam, thanks
Hello,
It seems to me that NClientInterface::writeStorageObjects always writes data specifying the owner, and it's impossible not to specify their userID, because it is gathered from thee UserSession. I need to read some data knowing only the Collection and the Key without owner's userID.
I didn't find a way to do so, please tell me is it actually possible?
PermissionRead is set to ENakamaStoragePermissionRead::PUBLIC_READ; and it's written successfully, but readStorageObjects gives me 0 objects