Converted sample project into an almost working Svelte / Meteor project. Needs to fix the login/logout code, the camera code, and add Chromebook history when the QR Code is scanned.
This commit is contained in:
@@ -2,9 +2,21 @@ import { Meteor } from 'meteor/meteor';
|
||||
|
||||
|
||||
if (Meteor.isServer) {
|
||||
Meteor.methods({
|
||||
'users.login'() {
|
||||
console.log("Login Called.");
|
||||
}
|
||||
});
|
||||
}
|
||||
Meteor.publish(null, function() {
|
||||
if(this.userId) {
|
||||
return Meteor.roleAssignment.find({'user._id': this.userId});
|
||||
}
|
||||
else {
|
||||
this.ready();
|
||||
}
|
||||
})
|
||||
|
||||
// Meteor.methods({
|
||||
// 'users.setupInitialRoles'() {
|
||||
// Roles.createRole('admin');
|
||||
// Roles.createRole('laptop-management');
|
||||
// Roles.addRolesToParent('laptop-management', 'admin');
|
||||
// Roles.addUsersToRoles("zwbMiaSKHix4bWQ8d", 'admin', 'global');
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user