Skip to content

Commit

Permalink
access to gadget details for user
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Schmidt committed May 25, 2014
1 parent d3e735f commit 72c4a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/gadgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ router.post('/new', helper.ensureAuthenticated, helper.ensureAdmin, function(req
})
});

router.get('/:id', helper.ensureAuthenticated, helper.ensureAdmin, function(req, res) {
router.get('/:id', helper.ensureAuthenticated, function(req, res) {
gadgets.findById(req.params.id,function(_err,_gadget){
bookings.find({gadget : _gadget._id.toString()}).toArray(function(_err,_bookings){
for(var i = 0 ; i < _bookings.length ; i++) {
Expand Down

0 comments on commit 72c4a23

Please sign in to comment.