mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Lots of changes and additions to the project. Still early, and not usable.
This commit is contained in:
parent
8636f8cf9b
commit
266dbd0856
41 changed files with 836 additions and 67 deletions
|
|
@ -12,16 +12,16 @@ Categories.allow({
|
|||
});
|
||||
|
||||
Meteor.methods({
|
||||
'add.category' (name) {
|
||||
check(name, String);
|
||||
'add.category' (categoryName) {
|
||||
check(categoryName, String);
|
||||
|
||||
if (!this.userId) {
|
||||
throw new Meteor.Error('You are not allowed to add categories. Make sure you are logged in with valid user credentials.');
|
||||
}
|
||||
|
||||
return Categories.insert({
|
||||
categoryName: name,
|
||||
categroyOwner: this.userid,
|
||||
categoryName: categoryName,
|
||||
categoryOwner: this.userId,
|
||||
});
|
||||
},
|
||||
'edit.category' (categoryId, categoryName,) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue