Yuki Takei 7 лет назад
Родитель
Сommit
022a8d0e6c
1 измененных файлов с 0 добавлено и 12 удалено
  1. 0 12
      src/server/models/page.js

+ 0 - 12
src/server/models/page.js

@@ -61,18 +61,6 @@ const pageSchema = new mongoose.Schema({
 // apply plugins
 pageSchema.plugin(uniqueValidator);
 
-/**
- * The Exception class thrown when the user has no grant to see the page
- *
- * @class UserHasNoGrantException
- */
-class UserHasNoGrantException {
-  constructor(message, user) {
-    this.name = this.constructor.name;
-    this.message = message;
-    this.user = user;
-  }
-}
 
 class PageQueryBuilder {
   constructor(query) {