Garyson
Posts: 0
Joined: Fri Mar 14, 2014 5:59 pm

Can one user update another user's data using SERVER CODE?

Hello!I've got a question confuse me for long! Assume that there are two USERs ,one is aaaaa and another is bbbbb.Then when I log in aaaaa, is there any way for me(aaaaa) to update data in database of user(bbbbb)? Method "DatabaseUser.update()" needs sessionToken and Id of bbbbb, but I can't get password and username of bbbbb when I log in aaaaa.....

I found this tutorial http://docs.appery.io/documentation/b... ,but it can only get data from USER collection,can I update data using this kind of method?Please help! This is quite important for me !

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

Can one user update another user's data using SERVER CODE?

Hello,

Yes, it is. You should know a password of this user to change user record on the servercode. There are no other ways.

Return to “Issues”