Change shared files naming. Rework tree structure and item management rendering.

This commit is contained in:
Clément Pons
2026-01-20 18:14:07 +01:00
parent 1a71637ebb
commit 777443471c
66 changed files with 984 additions and 447 deletions

14
shared/auth.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;
}