server: page permissions

This commit is contained in:
Philipinho
2024-04-22 02:25:03 +01:00
parent 3462c7fdbc
commit 28ec542ed6
6 changed files with 149 additions and 26 deletions

View File

@ -179,7 +179,7 @@ export class SpaceMemberRepo {
)
.execute();
if (roles.length < 1) {
if (!roles || roles.length === 0) {
return undefined;
}
return roles;