mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
8 lines
230 B
Ruby
8 lines
230 B
Ruby
class ClientController < ApplicationController
|
|
helper_method :current_registrar
|
|
|
|
def current_registrar
|
|
return Registrar.find(session[:current_user_registrar_id]) if current_user.admin?
|
|
current_user.registrar
|
|
end
|
|
end
|