From 581ac61b06530f03ddbcb256e33a968b9428a0bf Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 6 Jun 2016 09:25:37 -0700 Subject: [PATCH] exclude anonymous from ragel dtext --- app/helpers/application_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9f82a91c3..7721801b0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -50,7 +50,7 @@ module ApplicationHelper end def format_text(text, options = {}) - if CurrentUser.id < 1_000 + if CurrentUser.id < 1_000 && CurrentUser.id >= 1 raw(DTextRagel.parse(text)) else DText.parse(text) @@ -58,7 +58,7 @@ module ApplicationHelper end def strip_dtext(text, options = {}) - if CurrentUser.id < 1_000 + if CurrentUser.id < 1_000 && CurrentUser.id >= 1 raw(DTextRagel.parse_strip(text)) else DText.parse_strip(text)