Files
fizzy/app/controllers/sessions/menus_controller.rb
T
Stanko Krtalić 98755844a1 Remove the internal API
* Bind sessions to identities
* Remove references to the identity token
* Move email changes to identity
* Move account menu into a turbo-frame
* Create tenants from a tenanted route
2025-10-31 16:26:08 +01:00

18 lines
352 B
Ruby

class Sessions::MenusController < ApplicationController
require_untenanted_access
layout "public"
def show
if params[:menu_section]
request.variant = :menu_section
end
@memberships = Current.identity.memberships
if params[:without]
@memberships = @memberships.where.not(tenant: params[:without])
end
end
end