Skip to content

Commit

Permalink
Make pubkey_path private
Browse files Browse the repository at this point in the history
It's not an action
  • Loading branch information
hennevogel committed Dec 21, 2023
1 parent 4503919 commit 14d8a68
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/api/app/controllers/source_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,6 @@ def package_command
dispatch_command(:package_command, @command)
end

def pubkey_path
# check for project
@prj = Project.get_by_name(params[:project])
request.path_info + build_query_from_hash(params, [:user, :comment, :meta, :rev])
end

# GET /source/:project/_pubkey and /_sslcert
def show_project_pubkey
# assemble path for backend
Expand Down Expand Up @@ -400,6 +394,12 @@ def show_package_issues
render partial: 'package_issues'
end

def pubkey_path
# check for project
@prj = Project.get_by_name(params[:project])
request.path_info + build_query_from_hash(params, [:user, :comment, :meta, :rev])
end

def actually_create_incident(project)
raise ModifyProjectNoPermission, "no permission to modify project '#{project.name}'" unless User.session!.can_modify?(project)

Expand Down

0 comments on commit 14d8a68

Please sign in to comment.