🚧 Add admin api and ui for timetable management

This commit is contained in:
2023-06-20 23:10:52 +02:00
parent 0e2cc70a6b
commit 0ae553cca8
10 changed files with 307 additions and 5 deletions

View File

@ -2,6 +2,7 @@ import { sessionInfo } from "@/store";
export function hasPermission(permission, forValue) {
let hasPermission = false;
if (!sessionInfo.value.permissions) return false;
for (const perm of sessionInfo.value.permissions) {
if (perm == permission) hasPermission = true;
else if (perm == permission + ":" + forValue) hasPermission = true;