Allow to show a specific status in the admin interface

This commit is contained in:
Thibaut Girka
2018-08-31 12:24:01 +02:00
committed by ThibG
parent 6ad7dac791
commit 7ea4c793d6
3 changed files with 37 additions and 1 deletions

View File

@@ -22,6 +22,15 @@ module Admin
@form = Form::StatusBatch.new
end
def show
authorize :status, :index?
@statuses = @account.statuses.where(id: params[:id])
authorize @statuses[0], :show?
@form = Form::StatusBatch.new
end
def create
authorize :status, :update?