Add the ability for the admin :

- disabling a login for a user (not himself)
- enabling a login for a user
- transfering the ownership of all user's boards to himself
This commit is contained in:
soohwa 2017-10-13 08:15:19 +02:00
parent 3ab33ed826
commit 77d23df87f
3 changed files with 53 additions and 1 deletions

View file

@ -1,4 +1,9 @@
Meteor.startup(() => {
Accounts.validateLoginAttempt(function (options) {
return !options.user.loginDisabled;
});
Authentication = {};
Authentication.checkUserId = function (userId) {