add admin tools page
All checks were successful
delpoy / build-and-deploy (push) Successful in 40s

This commit is contained in:
2024-12-03 14:04:15 +01:00
parent 9e282cf61b
commit 8cb1e8bec5
11 changed files with 190 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ export class Permissions {
static readonly Reports = 2 << 2;
static readonly Feedback = 2 << 3;
static readonly Settings = 2 << 4;
static readonly Tools = 2 << 5;
readonly value: number;
@@ -31,7 +32,8 @@ export class Permissions {
Permissions.Users,
Permissions.Reports,
Permissions.Feedback,
Permissions.Settings
Permissions.Settings,
Permissions.Tools
];
}
@@ -51,6 +53,9 @@ export class Permissions {
settings(): boolean {
return (this.value & Permissions.Reports) != 0;
}
tools(): boolean {
return (this.value & Permissions.Tools) != 0;
}
asArray(): number[] {
const array = [];