parse.com - Changing data in another PFuser object -
in game, user can cause damage user, , take of gold. gold variable stored in other users pfuser object. how can 1 user change value gold stored in other users pfuser's object?
you can not save or delete non-authenticated pfusers. way implement functionality set separate class public read/write user variables
from parse documentation -
security user objects
the pfuser class secured default. data stored in pfuser can modified user. default, data can still read client. thus, pfuser objects authenticated , can modified, whereas others read-only.
specifically, not able invoke of save or delete methods unless pfuser obtained using authenticated method, login or signup. ensures user can alter own data.
Comments
Post a Comment