Initial commit
This commit is contained in:
parent
9ed5089508
commit
78e0e82449
16 changed files with 317 additions and 15 deletions
|
|
@ -12,7 +12,7 @@ SysConfig.allow({
|
|||
});
|
||||
|
||||
Meteor.methods({
|
||||
'add.noSysAdminReg' (admReg, genReg) {
|
||||
async 'add.noSysAdminReg' (admReg, genReg) {
|
||||
check(admReg, Boolean);
|
||||
check(genReg, Boolean);
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ Meteor.methods({
|
|||
|
||||
console.log("Got here...");
|
||||
console.log("Adding new.");
|
||||
return SysConfig.upsertAsync({ ruleNo: 1 }, {
|
||||
return await SysConfig.upsertAsync({ ruleNo: 1 }, {
|
||||
$set: {
|
||||
ruleNo: 1,
|
||||
SysAdminReg: admReg,
|
||||
|
|
@ -32,14 +32,14 @@ Meteor.methods({
|
|||
}
|
||||
});
|
||||
},
|
||||
'allow.updateInfo' (allowUpdate) {
|
||||
async 'allow.updateInfo' (allowUpdate) {
|
||||
check(allowUpdate, Boolean);
|
||||
|
||||
if (!this.userId) {
|
||||
throw new Meteor.Error('Not able to change system update notification settings. Make sure you are logged in with valid system administrator credentials.');
|
||||
}
|
||||
|
||||
return SysConfig.updateAsync({ ruleNo: 1 }, {
|
||||
return await SysConfig.updateAsync({ ruleNo: 1 }, {
|
||||
$set: {
|
||||
allowUpdates: allowUpdate,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue