Fix social spy not display when the "force" permission is not enabled in the config.
@@ -113,8 +113,8 @@ public class MessageHandler implements NucleusPrivateMessagingService {
}
@Override public Tristate forcedSocialSpyState(User user) {
- if (messageConfig.isSocialSpyAllowForced() && socialspypermissions.testSuffix(user, "base")) {
- if (socialspypermissions.testSuffix(user, "force")) {
+ if (socialspypermissions.testSuffix(user, "base")) {
+ if (messageConfig.isSocialSpyAllowForced() && socialspypermissions.testSuffix(user, "force")) {
return Tristate.TRUE;
}
