fix: coherent nav bar profile for super admins

This commit is contained in:
Colin Darie 2024-09-11 15:13:32 +02:00
parent 16e1daac9b
commit d566186954
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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