mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 07:29:09 +01:00
Fix moderation_view?
breaking when not logged in
This commit is contained in:
parent
6d03eb78d9
commit
93c62a3008
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