mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Added permissions for the profiler..
This commit is contained in:
parent
45c04b7d2a
commit
f6fb8372b9
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Reference in a new issue