|
|
|
@ -50,7 +50,7 @@ class CommentsController < ApplicationController
|
|
|
|
|
|
|
|
|
|
# 隐藏、取消隐藏
|
|
|
|
|
def hidden
|
|
|
|
|
if @hack.manager?(current_user)
|
|
|
|
|
if current_user.admin_or_business?
|
|
|
|
|
@discuss = @hack.discusses.where(id: params[:id]).first
|
|
|
|
|
@discuss.update_attribute(:hidden, params[:hidden] == "1")
|
|
|
|
|
sucess_status
|
|
|
|
|