fixed super admin validation issue
This commit is contained in:
@@ -113,7 +113,7 @@ public class Validator {
|
|||||||
|
|
||||||
public CallEntity validateUserWithCall(UserEntity user, Long callId) {
|
public CallEntity validateUserWithCall(UserEntity user, Long callId) {
|
||||||
CallEntity callEntity = callService.validateCall(callId);
|
CallEntity callEntity = callService.validateCall(callId);
|
||||||
if(user.getHub().getId().equals(callEntity.getHub().getId())) {
|
if(Boolean.FALSE.equals(user.getHub().getId().equals(callEntity.getHub().getId()))) {
|
||||||
throw new ForbiddenAccessException(Status.FORBIDDEN, Translator.toLocale(GepafinConstant.PERMISSION_DENIED));
|
throw new ForbiddenAccessException(Status.FORBIDDEN, Translator.toLocale(GepafinConstant.PERMISSION_DENIED));
|
||||||
}
|
}
|
||||||
return callEntity;
|
return callEntity;
|
||||||
|
|||||||
Reference in New Issue
Block a user