Hello, I am developing a clans system for our game and have found that a GroupUpdate request’s signature in the documentation (Heroic Labs Documentation | Function Reference) doesn’t match to the signature of this method in the go runtime. There is userId parameter in the documentation, but actually it doesn’t exist in the go runtime
Thanks for your reply @tom.
I have read the documentation about the roles and that is exactly I need. But:
our app sends a custom rpc with custom parameters
we handle these parameters on the server
than we call nk.GroupUpdate, but I assume that if I call this method on the go runtime - there is no validation of permission to update the group, because nk.GroupUpdate doesn’t have any information about the user that requested this action. So I thought that in this case I need to check the role of the user manually before calling nk.GroupUpdate in the way I described in the first message.
@Andrey you’re correct, we’ll consider adding the userID as parameter in GroupUpdate in a future release, for now you can do permission checking by using ListUserGroups and inspecting whether the user has the correct state to be able to perform the update and then call GroupUpdate accordingly.