|
|
@ -135,7 +135,7 @@ public class SignInStatusManagerImpl implements SignInStatusManager {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void managerAuthToClient(String managerStatusKey, String clientMoniker) {
|
|
|
|
public void managerAuthToClient(String managerStatusKey, String clientMoniker) {
|
|
|
|
JSONObject manager = getCurrentManager(managerStatusKey);
|
|
|
|
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);
|
|
|
|
String cacheKey = clientMockRedisKey(managerStatusKey);
|
|
|
|
stringRedisTemplate.boundValueOps(cacheKey).set(clientMoniker, 30, TimeUnit.MINUTES);
|
|
|
|
stringRedisTemplate.boundValueOps(cacheKey).set(clientMoniker, 30, TimeUnit.MINUTES);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|