  def do_project_release( params )
    User.current ||= User.find_by_login(params[:user])

    check_write_access!

    packages.each do |pkg|
      pkg.project.repositories.each do |repo|
        next if params[:repository] and params[:repository] != repo.name
        repo.release_targets.each do |releasetarget|
          # release source and binaries
          release_package(pkg, releasetarget.target_repository.project.name, pkg.name, repo)
        end
      end
    end
  end
Weaknesses in this category are related to improper assignment or handling of permissions.