edit authors, delete users, UI changes

This commit is contained in:
Karol Selak 2021-03-21 22:31:58 +01:00
parent e36cc36947
commit ccb6e23960
19 changed files with 190 additions and 75 deletions

View file

@ -25,12 +25,6 @@ class BooksController < ApplicationController
private
def ensure_admin
unless current_user&.admin?
redirect_to '/welcome', notice: 'You are not allowed to perform this action'
end
end
def set_book
@book = BooksPresenter.new(Book.find(params[:id]))
end