exclude anonymous from ragel dtext

This commit is contained in:
r888888888
2016-06-06 09:25:37 -07:00
parent ebbec0186c
commit 581ac61b06

View File

@@ -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)