Add lndhub admin panel, quick stats for admin pages #80

Merged
raucao merged 22 commits from feature/admin_stats into master 2023-02-23 07:43:16 +00:00
Showing only changes of commit 25a0723166 - Show all commits

View File

@@ -4,7 +4,9 @@ RSpec.describe 'Admin dashboard', type: :feature do
let(:user) { create :user }
before do
allow(user).to receive(:is_admin?).and_return(true)
allow(Devise::LDAP::Adapter).to receive(:get_ldap_param)
.with(user.cn, :admin).and_return(["true"])
login_as user, :scope => :user
end