fix: coherent nav bar profile for super admins
This commit is contained in:
parent
16e1daac9b
commit
d566186954
2 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class SuperAdmins::SessionsController < Devise::SessionsController
|
class SuperAdmins::SessionsController < Devise::SessionsController
|
||||||
|
def nav_bar_profile = :superadmin
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
class SuperAdminsController < ApplicationController
|
class SuperAdminsController < ApplicationController
|
||||||
before_action :authenticate_super_admin!
|
before_action :authenticate_super_admin!
|
||||||
|
|
||||||
|
def nav_bar_profile = :superadmin
|
||||||
|
|
||||||
def edit_otp
|
def edit_otp
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue