Files
fizzy/app/controllers/conversations_controller.rb
T
Stanko Krtalić 24cb5da194 Make Fizzy Ask staff-only (#1037)
* Make Fizzy Ask invisible but usable by staff

* Remove unused span

* Prevent non-staff users from creating or browsing messages

* Extract staff-only into a mixin

* Keep existing markup, use the utility class we already have

---------

Co-authored-by: Jason Zimdars <jz@37signals.com>
2025-09-09 11:23:31 +02:00

12 lines
210 B
Ruby

class ConversationsController < ApplicationController
include StaffOnly
def create
Current.user.start_or_continue_conversation
end
def show
@conversation = Current.user.conversation
end
end