Make subscription work

This commit is contained in:
2026-05-04 23:55:41 +02:00
parent 141618f2cd
commit 54bae3e9c9
8 changed files with 41 additions and 23 deletions
+5 -1
View File
@@ -1,10 +1,14 @@
export default class User {
constructor(asUserInfo = {}, sDefaultTimeZone = '') {
Object.assign(this, asUserInfo);
this.setInfo(asUserInfo);
this.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone || this.timezone || sDefaultTimeZone;
}
setInfo(asUserInfo = {}) {
Object.assign(this, asUserInfo);
}
hasClearance(sClearance) {
return this.clearance >= sClearance;
}