mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Added ability for ystem admin to disable registration.
This commit is contained in:
parent
45b78101c8
commit
bc8df48389
10 changed files with 145 additions and 32 deletions
|
|
@ -12,23 +12,6 @@ UserConfigOptions.allow({
|
|||
});
|
||||
|
||||
Meteor.methods({
|
||||
'add.darkPref' (darkPref) {
|
||||
check(darkPref, Boolean);
|
||||
|
||||
return UserConfigOptions.insert({
|
||||
darkPref: darkPref,
|
||||
owner: this.userId
|
||||
});
|
||||
},
|
||||
'edit.darkPref' (darkPref) {
|
||||
check(darkPref, Boolean);
|
||||
|
||||
return UserConfigOptions.update({ owner: this.userId }, {
|
||||
$set: {
|
||||
darkPref: darkPref
|
||||
}
|
||||
});
|
||||
},
|
||||
'change.userPass' (usersId, password) {
|
||||
check(usersId, String);
|
||||
check(password, String);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue