Skip to content

Commit

Permalink
fix #283
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjovis committed Nov 11, 2018
1 parent 4b1f5a2 commit 075f908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/apiController.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ exports.deleteGame = async function(req, res, next) {
try{
let userInfo = req.session.user;
let dbRes = null;
if (userInfo.role == 1 || userInfo.role == 2) {
if (userInfo.role == 2) {
dbRes = await game.deleteGameByAdmin([req.params.id]);
} else {
dbRes = await game.deleteGame([req.params.id, req.session.user.userid]);
Expand Down

0 comments on commit 075f908

Please sign in to comment.