|
@@ -69,6 +69,7 @@ module.exports = function(crowi) {
|
|
|
lastLoginAt: { type: Date },
|
|
lastLoginAt: { type: Date },
|
|
|
admin: { type: Boolean, default: 0, index: true },
|
|
admin: { type: Boolean, default: 0, index: true },
|
|
|
isInvitationEmailSended: { type: Boolean, default: false },
|
|
isInvitationEmailSended: { type: Boolean, default: false },
|
|
|
|
|
+ isEnableQuestionnaire: { type: Boolean, default: true },
|
|
|
}, {
|
|
}, {
|
|
|
timestamps: true,
|
|
timestamps: true,
|
|
|
toObject: {
|
|
toObject: {
|
|
@@ -730,6 +731,11 @@ module.exports = function(crowi) {
|
|
|
return { users, totalCount };
|
|
return { users, totalCount };
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ userSchema.methods.updateIsEnableQuestionnaire = async function(value) {
|
|
|
|
|
+ this.isEnableQuestionnaire = value;
|
|
|
|
|
+ return this.save();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
class UserUpperLimitException {
|
|
class UserUpperLimitException {
|
|
|
|
|
|
|
|
constructor() {
|
|
constructor() {
|