|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
class MemosController < ApplicationController
|
|
|
|
|
before_action :require_login, except: [:show, :index]
|
|
|
|
|
before_action :check_account, only: [:new, :create]
|
|
|
|
|
before_action :check_account, only: [:new, :create, :reply]
|
|
|
|
|
before_action :set_memo, only: [:show, :edit, :update, :destroy, :sticky_or_cancel, :hidden, :more_reply]
|
|
|
|
|
before_action :validate_memo_params, only: [:create, :update]
|
|
|
|
|
before_action :owner_or_admin, only: [:edit, :update, :destroy]
|
|
|
|
|