mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-15 09:11:11 +10:00
server: page permissions
This commit is contained in:
@ -179,7 +179,7 @@ export class SpaceMemberRepo {
|
||||
)
|
||||
.execute();
|
||||
|
||||
if (roles.length < 1) {
|
||||
if (!roles || roles.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
return roles;
|
||||
|
||||
Reference in New Issue
Block a user