Skip to content

Commit

Permalink
❗️ fix permissions on mission api routes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbeier committed Apr 28, 2017
1 parent ddaf5ff commit 60a3ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ exports = module.exports = (app) => {
app.get('/volunteer/:token', api.volunteers.setToken);

app.get('/api/missions', keystone.middleware.api, isAdmin, api.missions.all);
app.post('/api/missions', keystone.middleware.api, api.missions.create);
app.get('/api/missions/:id', keystone.middleware.api, hasToken, api.missions.one);
app.put('/api/missions/:id', keystone.middleware.api, hasToken, api.missions.update);
app.post('/api/missions', keystone.middleware.api, isAdmin, api.missions.create);
app.get('/api/missions/:id', keystone.middleware.api, isAdmin, api.missions.one);
app.put('/api/missions/:id', keystone.middleware.api, isAdmin, api.missions.update);

app.get('/api/volunteers', keystone.middleware.api, isAdmin, api.volunteers.all);
app.get('/api/volunteer', keystone.middleware.api, hasToken, api.volunteers.one);
Expand Down

0 comments on commit 60a3ef2

Please sign in to comment.