summaryrefslogtreecommitdiffstats
path: root/models/users.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-09-25 13:16:07 +0300
committerLauri Ojansivu <x@xet7.org>2017-09-25 13:16:07 +0300
commitfb79c8786ae32d6d2d46738815ed2b5f43a3f870 (patch)
tree6ca1f4f5959a1c8c4209f79cfa480099ce7e4450 /models/users.js
parent415343bbd0184059ab5b4c838e26bc14fa2c7627 (diff)
downloadwekan-fb79c8786ae32d6d2d46738815ed2b5f43a3f870.tar.gz
wekan-fb79c8786ae32d6d2d46738815ed2b5f43a3f870.tar.bz2
wekan-fb79c8786ae32d6d2d46738815ed2b5f43a3f870.zip
v0.41v0.41
Diffstat (limited to 'models/users.js')
-rw-r--r--models/users.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/models/users.js b/models/users.js
index 505ed93e..c2238cde 100644
--- a/models/users.js
+++ b/models/users.js
@@ -108,10 +108,6 @@ Users.attachSchema(new SimpleSchema({
type: Boolean,
optional: true,
},
- fromAdmin: {
- type: Boolean,
- optional: false,
- },
}));
// Search a user in the complete server database by its name or username. This
@@ -439,12 +435,6 @@ if (Meteor.isServer) {
user.isAdmin = true;
return user;
}
-
- if (options.from === 'admin') {
- user.fromAdmin = true;
- return user;
- }
-
const disableRegistration = Settings.findOne().disableRegistration;
if (!disableRegistration) {
return user;
@@ -534,9 +524,6 @@ if (Meteor.isServer) {
Users.after.insert((userId, doc) => {
- if (doc.fromAdmin)
- return;
-
//invite user to corresponding boards
const disableRegistration = Settings.findOne().disableRegistration;
if (disableRegistration) {
@@ -595,7 +582,6 @@ if (Meteor.isServer) {
username: req.body.username,
email: req.body.email,
password: 'default',
- from: 'admin',
});
JsonRoutes.sendResult(res, {