Added permissions for the profiler..

This commit is contained in:
Tom Coleman 2012-12-05 17:52:14 +11:00
parent 45c04b7d2a
commit f6fb8372b9
2 changed files with 9 additions and 2 deletions

View file

@ -42,4 +42,11 @@ Meteor.methods({
testBuffer: function(){ testBuffer: function(){
// TODO // TODO
} }
}); });
// permissions for the profiler
Meteor.Profiler.allow = function(userId) {
var user = Meteor.users.findOne(userId);
return user && user.isAdmin;
};

View file

@ -27,7 +27,7 @@
"profiler": { "profiler": {
"git": "https://github.com/tmeasday/meteor-profiler.git", "git": "https://github.com/tmeasday/meteor-profiler.git",
"branch": "master", "branch": "master",
"commit": "dd6b17169abaad470ba722cb5f3aa4cc7caefd0c" "commit": "25a14a4e94a4748745738031baab1400860eede7"
}, },
"page-js": { "page-js": {
"git": "https://github.com/tmeasday/meteor-page-js.git", "git": "https://github.com/tmeasday/meteor-page-js.git",