class ProjectController {

    public boolean canCreateProjects(final OrganizationalUnit organizationalUnit) {
        final boolean securityPermission = authorizationManager.authorize(Repository.RESOURCE_TYPE,
                                                                          RepositoryAction.CREATE,
                                                                          user);

        return securityPermission
                || userIsAtLeast(ContributorType.CONTRIBUTOR,
                                 organizationalUnit.getContributors());
    }

    @Inject public  ProjectController(final AuthorizationManager authorizationManager,
                             final User user,
                             final Caller<ProjectPermissionsService> projectPermissionsService,
                             final Promises promises);

}