2014-12-25 14:00:33 -08:00
|
|
|
class ModerationController < ApplicationController
|
2020-04-18 16:45:50 -07:00
|
|
|
before_action :authenticate_user!
|
2014-12-28 16:25:48 -08:00
|
|
|
|
2022-06-23 14:35:33 -07:00
|
|
|
def toggle_unmask
|
|
|
|
session[:moderation_view] = !session[:moderation_view]
|
|
|
|
redirect_back fallback_location: root_path
|
|
|
|
end
|
2014-12-25 14:00:33 -08:00
|
|
|
end
|