登录
This commit is contained in:
@@ -123,7 +123,7 @@ public class AuthorizationController {
|
||||
// SecurityContextHolder.getContext().setAuthentication(authentication);
|
||||
final JwtUserDto jwtUserDto = (JwtUserDto) authentication.getPrincipal();
|
||||
// TbShopInfo byAccount = tbShopInfoRepository.findByAccount(jwtUserDto.getUsername());
|
||||
TbPlussShopStaff tbPlussShopStaff = staffRepository.queryByAccount(jwtUserDto.getUsername());
|
||||
TbPlussShopStaff tbPlussShopStaff = staffRepository.queryByAccount(authUser.getUsername());
|
||||
if (tbPlussShopStaff != null && tbPlussShopStaff.getType().equals("staff")) {
|
||||
Integer isManage = tbPlussShopStaff.getIsManage();
|
||||
if (isManage != null && isManage != 1) {
|
||||
|
||||
Reference in New Issue
Block a user