summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
authorMax Wu2017-01-10 20:23:47 +0800
committerGitHub2017-01-10 20:23:47 +0800
commita8068d38d589a1b8ed008f737d42ed35df4bfd2b (patch)
tree0f3b5fcdaa9da239170dd7a6731d0f8f0504f759 /lib/models
parent258a59a77d390196a66acfbd5dd49ea66c5f18f9 (diff)
parentd6be0cf755e31002d6265b706785c06e06a0ae56 (diff)
Merge pull request #313 from elct9620/feature/disable_anonymous_view
WIP: Add options to limit anonymous view note
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/note.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/models/note.js b/lib/models/note.js
index 132f8b1e..a6921267 100644
--- a/lib/models/note.js
+++ b/lib/models/note.js
@@ -23,7 +23,7 @@ var logger = require("../logger.js");
var ot = require("../ot/index.js");
// permission types
-var permissionTypes = ["freely", "editable", "locked", "private"];
+var permissionTypes = ["freely", "editable", "limited", "private", "protected", "locked"];
module.exports = function (sequelize, DataTypes) {
var Note = sequelize.define("Note", {
@@ -333,7 +333,7 @@ module.exports = function (sequelize, DataTypes) {
if (meta.slideOptions && (typeof meta.slideOptions == "object"))
_meta.slideOptions = meta.slideOptions;
}
- return _meta;
+ return _meta;
},
updateAuthorshipByOperation: function (operation, userId, authorships) {
var index = 0;
@@ -532,4 +532,4 @@ module.exports = function (sequelize, DataTypes) {
});
return Note;
-}; \ No newline at end of file
+};