|
@@ -3,8 +3,6 @@ import uniqueValidator from 'mongoose-unique-validator';
|
|
|
|
|
|
|
|
import { getOrCreateModel } from '@growi/core';
|
|
import { getOrCreateModel } from '@growi/core';
|
|
|
|
|
|
|
|
-import { PageDeleteConfigValue } from '~/interfaces/page-delete-config';
|
|
|
|
|
-
|
|
|
|
|
export interface Config {
|
|
export interface Config {
|
|
|
_id: Types.ObjectId;
|
|
_id: Types.ObjectId;
|
|
|
ns: string;
|
|
ns: string;
|
|
@@ -62,10 +60,10 @@ export const defaultCrowiConfigs: { [key: string]: any } = {
|
|
|
'security:list-policy:hideRestrictedByOwner' : false,
|
|
'security:list-policy:hideRestrictedByOwner' : false,
|
|
|
'security:list-policy:hideRestrictedByGroup' : false,
|
|
'security:list-policy:hideRestrictedByGroup' : false,
|
|
|
// DEPRECATED: 'security:pageCompleteDeletionAuthority' : undefined,
|
|
// DEPRECATED: 'security:pageCompleteDeletionAuthority' : undefined,
|
|
|
- 'security:pageDeletionAuthority' : PageDeleteConfigValue.Anyone,
|
|
|
|
|
- 'security:pageCompleteDeletionAuthority' : PageDeleteConfigValue.Anyone,
|
|
|
|
|
- 'security:pageRecursiveDeletionAuthority' : PageDeleteConfigValue.Inherit,
|
|
|
|
|
- 'security:pageRecursiveCompleteDeletionAuthority' : PageDeleteConfigValue.Inherit,
|
|
|
|
|
|
|
+ 'security:pageDeletionAuthority' : undefined,
|
|
|
|
|
+ 'security:pageCompleteDeletionAuthority' : undefined,
|
|
|
|
|
+ 'security:pageRecursiveDeletionAuthority' : undefined,
|
|
|
|
|
+ 'security:pageRecursiveCompleteDeletionAuthority' : undefined,
|
|
|
'security:disableLinkSharing' : false,
|
|
'security:disableLinkSharing' : false,
|
|
|
|
|
|
|
|
'security:passport-local:isEnabled' : true,
|
|
'security:passport-local:isEnabled' : true,
|