|
|
|
@ -135,7 +135,7 @@ public class SignInStatusManagerImpl implements SignInStatusManager {
|
|
|
|
|
@Override
|
|
|
|
|
public void managerAuthToClient(String managerStatusKey, String clientMoniker) {
|
|
|
|
|
JSONObject manager = getCurrentManager(managerStatusKey);
|
|
|
|
|
if (manager != null && ManagerRole.ADMIN.hasRole(manager.getIntValue("role"))) {
|
|
|
|
|
if (manager != null && (ManagerRole.ADMIN.hasRole(manager.getIntValue("role")) || ManagerRole.OPERATOR.hasRole(manager.getIntValue("role")))) {
|
|
|
|
|
String cacheKey = clientMockRedisKey(managerStatusKey);
|
|
|
|
|
stringRedisTemplate.boundValueOps(cacheKey).set(clientMoniker, 30, TimeUnit.MINUTES);
|
|
|
|
|
return;
|
|
|
|
|