mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:39:52 +01:00
Always return a boolean value from moderation_view?
This commit is contained in:
parent
f5f7b0d22b
commit
b00a12b322
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module UserHelper
|
|||
end
|
||||
|
||||
def moderation_view?
|
||||
current_user&.mod? && session[:moderation_view] == true
|
||||
!!(current_user&.mod? && session[:moderation_view] == true)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue