mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Fix home page link
This commit is contained in:
parent
a2a67159d4
commit
211f8c9143
10 changed files with 31 additions and 30 deletions
|
@ -1,7 +0,0 @@
|
|||
class Registrar
|
||||
class DashboardController < BaseController
|
||||
authorize_resource class: false
|
||||
|
||||
def show; end
|
||||
end
|
||||
end
|
|
@ -173,9 +173,9 @@ class Registrar
|
|||
|
||||
def after_sign_in_path_for(_resource_or_scope)
|
||||
if can?(:show, :poll)
|
||||
registrar_poll_path
|
||||
else
|
||||
registrar_root_path
|
||||
else
|
||||
registrar_profile_path
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -31,8 +31,6 @@ class Ability
|
|||
end
|
||||
|
||||
def epp # Registrar/api_user dynamic role
|
||||
can :view, :registrar_dashboard
|
||||
|
||||
if @user.registrar.api_ip_white?(@ip)
|
||||
can :manage, :poll
|
||||
can :manage, Depp::Contact
|
||||
|
@ -71,7 +69,6 @@ class Ability
|
|||
end
|
||||
|
||||
def billing # Registrar/api_user dynamic role
|
||||
can :view, :registrar_dashboard
|
||||
can(:manage, Invoice) { |i| i.buyer_id == @user.registrar_id }
|
||||
can :manage, :deposit
|
||||
can :read, AccountActivity
|
||||
|
|
|
@ -31,6 +31,7 @@ class ApiUser < User
|
|||
|
||||
SUPER = 'super'
|
||||
EPP = 'epp'
|
||||
BILLING = 'billing'
|
||||
|
||||
ROLES = %w(super epp billing) # should not match to admin roles
|
||||
|
||||
|
|
|
@ -24,7 +24,8 @@
|
|||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<%= link_to registrar_root_path, class: 'navbar-brand' do %>
|
||||
<%= link_to can?(:show, :poll) ? registrar_root_path : registrar_profile_path,
|
||||
class: 'navbar-brand' do %>
|
||||
<%= t(:registrar_head_title) %>
|
||||
<% if unstable_env.present? %>
|
||||
<div class="text-center">
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
.panel.panel-default
|
||||
.panel-body
|
||||
= t('welcome_to_eis_registrar_portal')
|
Loading…
Add table
Add a link
Reference in a new issue