mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/freeradius: repair magic user form glue for @mimugmail
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= freeradius
|
||||
PLUGIN_VERSION= 1.5.2
|
||||
PLUGIN_VERSION= 1.5.3
|
||||
PLUGIN_COMMENT= RADIUS Authentication, Authorization and Accounting Server
|
||||
PLUGIN_DEPENDS= freeradius3
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -78,12 +78,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
// at once after load. No need for an "onShow" type of event here,
|
||||
// since our changes aren't driven by the dialog form itself.
|
||||
if (data.general != undefined) {
|
||||
$("#frm_dialogEditFreeRADIUSUser tr").each(function(){
|
||||
var this_item_name = $(this).attr('for');
|
||||
$("#frm_dialogEditFreeRADIUSUser tr").each(function () {
|
||||
var this_item_name = $(this).attr('id');
|
||||
var this_item = $(this);
|
||||
if (this_item_name != undefined) {
|
||||
$.each(data.general, function(setting_key, setting_value){
|
||||
var search_item = 'user.' + setting_key +'_';
|
||||
var search_item = 'row_user.' + setting_key +'_';
|
||||
if (this_item_name.startsWith(search_item) && setting_value == '0') {
|
||||
// since our form tr rows are visible by default, we only have to hide what isn't needed
|
||||
this_item.hide();
|
||||
|
||||
Reference in New Issue
Block a user