mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 02:05:57 +02:00
Added role base redirect and updated abilities
This commit is contained in:
parent
5afa0ac793
commit
84cd0b8378
5 changed files with 34 additions and 24 deletions
|
@ -16,7 +16,7 @@ class RegistrarController < ApplicationController
|
|||
sign_out(current_user)
|
||||
return
|
||||
end
|
||||
|
||||
return if Rails.env.development?
|
||||
return if current_user.registrar.registrar_ip_white?(request.ip)
|
||||
flash[:alert] = t('ip_is_not_whitelisted')
|
||||
sign_out(current_user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue