|
@@ -262,7 +262,7 @@ class PageService {
|
|
|
authority: IPageDeleteConfigValueToProcessValidation | null,
|
|
authority: IPageDeleteConfigValueToProcessValidation | null,
|
|
|
recursiveAuthority: IPageDeleteConfigValueToProcessValidation | null,
|
|
recursiveAuthority: IPageDeleteConfigValueToProcessValidation | null,
|
|
|
): boolean {
|
|
): boolean {
|
|
|
- const isAdmin = operator.admin;
|
|
|
|
|
|
|
+ const isAdmin = operator?.admin ?? false;
|
|
|
const isOperator = operator?._id == null ? false : operator._id.equals(creatorId);
|
|
const isOperator = operator?._id == null ? false : operator._id.equals(creatorId);
|
|
|
|
|
|
|
|
if (isRecursively) {
|
|
if (isRecursively) {
|