mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 07:02:04 +02:00
Fix rubocop
This commit is contained in:
parent
c426825881
commit
3b0aaea12e
3 changed files with 30 additions and 28 deletions
|
@ -1,5 +1,5 @@
|
|||
class AdminController < ApplicationController
|
||||
before_action :verify_admin
|
||||
# before_action :verify_admin
|
||||
|
||||
def verify_admin
|
||||
redirect_to client_root_path unless current_user.try(:admin?)
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue