mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
7 lines
174 B
Ruby
7 lines
174 B
Ruby
class AdminController < ApplicationController
|
|
# before_action :verify_admin
|
|
|
|
def verify_admin
|
|
redirect_to client_root_path unless current_user.try(:admin?)
|
|
end
|
|
end
|