Commit 3644ca4b authored by azul's avatar azul

Merge branch 'log/spammers' into 'master'

log: removal of comments by page admins

See merge request !292
parents 47901677 261c5213
......@@ -27,6 +27,9 @@ module Common::Posts
def destroy
authorize @post
if @post.user != current_user "Page admin removed comment from '#{@post.user.login}' - maybe SPAM."
respond_to do |format|
format.js { render template: 'common/posts/destroy' }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment