mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Allow to edit email verified and initials at Admin Panel/People/People.
Thanks to xet7 ! Fixes #1426
This commit is contained in:
parent
d0cdc33c19
commit
d03e2170dd
4 changed files with 68 additions and 12 deletions
|
@ -836,6 +836,34 @@ if (Meteor.isServer) {
|
|||
}
|
||||
}
|
||||
},
|
||||
setEmailVerified(email, verified, userId) {
|
||||
if (Meteor.user() && Meteor.user().isAdmin) {
|
||||
check(email, String);
|
||||
check(verified, Boolean);
|
||||
check(userId, String);
|
||||
Users.update(userId, {
|
||||
$set: {
|
||||
emails: [
|
||||
{
|
||||
address: email,
|
||||
verified,
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
setInitials(initials, userId) {
|
||||
if (Meteor.user() && Meteor.user().isAdmin) {
|
||||
check(initials, String);
|
||||
check(userId, String);
|
||||
Users.update(userId, {
|
||||
$set: {
|
||||
'profile.initials': initials,
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
// we accept userId, username, email
|
||||
inviteUserToBoard(username, boardId) {
|
||||
check(username, String);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue