mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 17:48:49 +01:00
v0.41
This commit is contained in:
parent
415343bbd0
commit
fb79c8786a
4 changed files with 11 additions and 17 deletions
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue