I set the default privilege to 1 when a registered user signs in, this might be increased to a 2 when joining a Room (by calling setPrivilegeId).
The change is reflected in SmartFox monitor on the server, but the client API doesn't know about it, and subsequent checks (e.g. IsModerator) don't know about the change.
Is there an event to listen for (or a way to refresh), so that I can update the UI in Unity when a user is given additional rights (or rights removed)?
Server version is 2.3.14.
Context (if it helps) is that different users have different rights in different rooms: they might moderate one room but not another.
Thanks
Privilege Manager Events
Re: Privilege Manager Events
Hi,
the privilege ID is set a login time. The server sends the id back to the client in the login response. After that it doesn't change for the entirety of the session.
You can still change it on the server side via Extension code, but the client won't know unless you send them a custom update.
Hope it helps
the privilege ID is set a login time. The server sends the id back to the client in the login response. After that it doesn't change for the entirety of the session.
You can still change it on the server side via Extension code, but the client won't know unless you send them a custom update.
Hope it helps
Re: Privilege Manager Events
Amazing quick response thanks!
Who is online
Users browsing this forum: No registered users and 79 guests