Skip to content

Commit

Permalink
Fix project ID value on controller
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioosouzaa authored and Guilherme-NL committed Oct 18, 2023
1 parent d0a0796 commit c7f7375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/beta/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7f7375

Please sign in to comment.