Only allow mysql auth type to add users (#10283)

This commit is contained in:
Tony Murray
2019-05-31 00:57:36 -05:00
committed by GitHub
parent 241b07756f
commit eea0d4d359

View File

@@ -88,7 +88,7 @@
}
});
@if(\LibreNMS\Authentication\LegacyAuth::get()->canManageUsers())
@if(\LibreNMS\Config::get('auth_mechanism') == 'mysql')
$('.actionBar').append('<div class="pull-left"><a href="users/create" type="button" class="btn btn-primary">@lang('Add User')</a></div>');
@endif