// Path: src/main/java/com/parrit/repositories/ProjectRepository.java
// @Repository
// public interface ProjectRepository extends JpaRepository<Project, Long> {
// 
//     Optional<Project> findByName(String name);
// 
// }


import com.parrit.repositories.ProjectRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Service;
import java.util.Objects;
package com.parrit.configurations;



@Service
public class AuthorizationService {

    private final ProjectRepository projectRepository;

    @Autowired
// Path: src/main/java/com/parrit/repositories/ProjectRepository.java
// @Repository
// public interface ProjectRepository extends JpaRepository<Project, Long> {
// 
//     Optional<Project> findByName(String name);
// 
// }


// Path: src/main/java/com/parrit/configurations/AuthorizationService.java
import com.parrit.repositories.ProjectRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.User;
import org.springframework.stereotype.Service;
import java.util.Objects;

package com.parrit.configurations;



@Service
public class AuthorizationService {

    private final ProjectRepository projectRepository;

    @Autowired
    public AuthorizationService(ProjectRepository projectRepository) {