Yuki Takei 7 lat temu
rodzic
commit
022a8d0e6c
1 zmienionych plików z 0 dodań i 12 usunięć
  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
 // apply plugins
 pageSchema.plugin(uniqueValidator);
 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 {
 class PageQueryBuilder {
   constructor(query) {
   constructor(query) {