Move variable initialization to make sure it's initialized

(to satisfy scrutinizer)
This commit is contained in:
nathangray 2017-01-23 08:51:54 -07:00
parent 2b99050d99
commit e26ea93f64

View File

@ -572,13 +572,13 @@ app.classes.admin = AppJS.extend(
}
}
var rights = 0;
var id = [];
for(var i in _value.acl)
{
rights += parseInt(_value.acl[i]);
}
if(typeof _value.apps != 'undefined' && !_value.acl_appname)
{
id = [];
rights = 1;
var removed = [];