Skip to content

Commit

Permalink
Add function-based auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindale committed Sep 27, 2015
1 parent 72baacf commit e42c1c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion maki.js
Expand Up @@ -36,7 +36,10 @@ var Person = maki.define('Person', {
created: { type: Date , default: Date.now }
},
auth: {
'patch': 'admin'
'patch': ['admin', function(done) {
var person = this;
return false;
}]
},
icon: 'user'
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -49,7 +49,7 @@
"less-middleware": "git://github.com/martindale/less.js-middleware#maki",
"lodash": "^2.4.1",
"maki-analytics": "git://github.com/martindale/maki-analytics",
"maki-auth-simple": "0.0.0",
"maki-auth-simple": "0.0.1",
"maki-forms": "0.0.0",
"maki-jsonrpc": "^0.1.1",
"maki-mongoose-hooks": "^0.2.0",
Expand Down

0 comments on commit e42c1c3

Please sign in to comment.