Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
St3plox committed Jul 22, 2023
1 parent 83eb232 commit a6afd17
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package ru.tvey.cloudserverapp.controller;

import jakarta.validation.Valid;
import lombok.AllArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import org.springframework.stereotype.Service;
import ru.tvey.cloudserverapp.entity.messaging.Group;
import ru.tvey.cloudserverapp.entity.user.User;
import ru.tvey.cloudserverapp.exception.file.EntityNotFoundException;
import ru.tvey.cloudserverapp.exception.user.UserAuthorityException;
import ru.tvey.cloudserverapp.exception.user.UserExistsException;
import ru.tvey.cloudserverapp.repository.GroupMemberRepository;
Expand Down Expand Up @@ -99,7 +98,6 @@ public void addMember(Authentication auth, String username, long groupId) {

private List<Long> groupBelongCheck(Authentication auth, long groupId) {
User user = userService.getUser(auth.getName());
Group group = getGroup(groupId);

List<Long> userIds = getIdsOfGroup(groupId);
if (!userIds.contains(user.getId())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
import ru.tvey.cloudserverapp.entity.messaging.Message;
import ru.tvey.cloudserverapp.entity.user.User;
import ru.tvey.cloudserverapp.exception.cache.CacheException;
import ru.tvey.cloudserverapp.exception.file.EntityNotFoundException;
import ru.tvey.cloudserverapp.exception.user.UserAuthorityException;
import ru.tvey.cloudserverapp.exception.user.UserNotOwnerException;
import ru.tvey.cloudserverapp.repository.KeyPairEntityRepository;
import ru.tvey.cloudserverapp.repository.MessageRepository;
import ru.tvey.cloudserverapp.security.SecurityConstants;
Expand Down

0 comments on commit a6afd17

Please sign in to comment.