|
|
@@ -3386,8 +3386,9 @@ class PageService {
|
|
|
* @private
|
|
|
* This method receives the same arguments as the PageService.create method does except for the added type '{ grantedUsers?: ObjectIdLike[] }'.
|
|
|
* This additional value is used to determine the grantedUser of the page to be created by system.
|
|
|
- * !!This method does not run isGrantNormalized method to validate grant. Run it before use this method if necessary.!!
|
|
|
- * !!This is because it is not expected to use this method when the grant validation is required.!!
|
|
|
+ * This method does not run isGrantNormalized method to validate grant. **Run it before use this method if necessary.**
|
|
|
+ * -- Reason 1: This is because it is not expected to use this method when the grant validation is required.
|
|
|
+ * -- Reason 2: This is because it is not expected to use this method when the program cannot determine the operator.
|
|
|
*/
|
|
|
private async forceCreateBySystem(path: string, body: string, options: PageCreateOptions & { grantedUsers?: ObjectIdLike[] }): Promise<PageDocument> {
|
|
|
const Page = mongoose.model('Page') as unknown as PageModel;
|