add ability to check if user is wtv-admin authorized
This commit is contained in:
@@ -912,6 +912,12 @@ class WTVShared {
|
|||||||
});
|
});
|
||||||
return outdata;
|
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 {
|
class clientShowAlert {
|
||||||
|
|||||||
Reference in New Issue
Block a user