I've created a new permission profile on SmartFoxServer called "Vip" following thishttps://docs2x.smartfoxserver.com/A ... ge-manager. However, I receive an error when trying to assign it using session.setProperty("$permission", "Vip");.
Here’s the relevant code:
Code: Select all
switch (result.privilege) {
case "Vip":
session.setProperty("$permission", "Vip"); // Custom profile "Vip"
break;
// Other cases...
}Issues:
An error occurs when assigning the "Vip" profile.
I have verified that the "Vip" profile is correctly created.
Questions:
What could be causing this error?
Is there something specific I should check in the configuration?
Thanks in advance!