[Comments] Fix "Show all" for anon users

This commit is contained in:
Earlopain 2023-10-15 18:09:54 +02:00
parent 83f160e3a9
commit 2624a0f706
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -1,6 +1,6 @@
class CommentsController < ApplicationController
respond_to :html, :json
before_action :member_only, :except => [:index, :search, :show]
before_action :member_only, except: %i[index search show for_post]
before_action :moderator_only, only: [:unhide, :warning]
before_action :admin_only, only: [:destroy]
skip_before_action :api_check