version bump
- new homepage theme inspired by @GraspYonOx - connect setup also mostly by @GraspYonOx - some 'fixes' regarding module unloading, hopefully fixing call stack issue - fixes to wtvshared.isAdmin() to not show log as if it was an access attempt
This commit is contained in:
@@ -72,6 +72,14 @@ class WTVShared {
|
||||
return src;
|
||||
}
|
||||
|
||||
isAdmin(wtvclient, service_name = "wtv-admin") {
|
||||
var WTVAdmin = require("./WTVAdmin.js");
|
||||
var wtva = new WTVAdmin(this.minisrv_config, wtvclient, service_name);
|
||||
var result = wtva.isAuthorized(true);
|
||||
wtva, WTVAdmin = null;
|
||||
return result;
|
||||
}
|
||||
|
||||
parseJSON(json) {
|
||||
if (!json) return null;
|
||||
if (typeof json !== 'string') json = json.toString();
|
||||
@@ -912,12 +920,6 @@ class WTVShared {
|
||||
});
|
||||
return outdata;
|
||||
}
|
||||
|
||||
isAdmin(wtvclient, service_name = "wtv-admin") {
|
||||
var WTVAdmin = require("./WTVAdmin.js");
|
||||
var wtva = new WTVAdmin(this.minisrv_config, wtvclient, service_name);
|
||||
return (wtva.isAuthorized() === true) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
class clientShowAlert {
|
||||
|
||||
Reference in New Issue
Block a user