Add sync, Tree, Markdown, content editor.

This commit is contained in:
2024-11-10 15:41:47 +01:00
parent 41951d7603
commit 721e7ff3db
32 changed files with 658 additions and 124 deletions

14
utils/auth.util.ts Normal file
View File

@@ -0,0 +1,14 @@
export function hasPermissions(userPermissions: string[], neededPermissions: string[]): boolean
{
for(let i = 0; i < neededPermissions.length; i++)
{
const list = neededPermissions[i].split(' ');
if(list.every(e => userPermissions.includes(e)))
{
return true;
}
}
return false;
}