diff --git a/app/controllers/beta/projects_controller.rb b/app/controllers/beta/projects_controller.rb index be01228db..2607e07f9 100644 --- a/app/controllers/beta/projects_controller.rb +++ b/app/controllers/beta/projects_controller.rb @@ -2,7 +2,8 @@ class Beta::ProjectsController < ApplicationController before_action :set_fluid_layout def show - @project_id = params[:id] + @project_id = Project.find_by(slug: params[:id]).id + @project = current_user.projects.friendly.find @project_id authorize @project, policy_class: Beta::ProjectPolicy