Skip to content

Commit

Permalink
Needs admin access see a lab review page
Browse files Browse the repository at this point in the history
Not sure why review page was allowed for none logged in.
  • Loading branch information
MacTwister committed Aug 1, 2024
1 parent 1c95d51 commit d17f0be
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/controllers/backstage/labs_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Backstage::LabsController < Backstage::BackstageController
skip_before_action :require_admin, only: :show

include LabsOperations

def index
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/backstage/my_labs_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class Backstage::MyLabsController < Backstage::BackstageController
skip_before_action :require_admin, only: :index

def index
@q = current_user.created_labs.ransack(params[:q], auth_object: set_ransack_auth_object)

Expand Down

0 comments on commit d17f0be

Please sign in to comment.