Respect user_type for RfC index routes

This commit is contained in:
Sebastian Serth
2020-12-04 16:58:05 +01:00
parent 389a5c424a
commit fac29f73d4
2 changed files with 8 additions and 8 deletions

View File

@ -27,7 +27,7 @@ class RequestForCommentsController < ApplicationController
def get_my_comment_requests
@search = RequestForComment
.with_last_activity
.where(user_id: current_user&.id)
.where(user: current_user)
.ransack(params[:q])
@request_for_comments = @search.result
.order('created_at DESC')