Commit 06c1c5b9 authored by Geovanny's avatar Geovanny

Fixed permissions

parent 91bef4dd
...@@ -286,7 +286,7 @@ authRouter.post('/', async (context, next) => { ...@@ -286,7 +286,7 @@ authRouter.post('/', async (context, next) => {
}); });
authRouter.put('/', async (context, next) => { authRouter.put('/', async (context, next) => {
checkPermissions(context, HOUSE_ROLES.LIEGE) checkPermissions(context, HOUSE_ROLES.lg)
try{ try{
const body = context.request.body; const body = context.request.body;
if(!body){ if(!body){
...@@ -301,7 +301,7 @@ authRouter.put('/', async (context, next) => { ...@@ -301,7 +301,7 @@ authRouter.put('/', async (context, next) => {
}); });
authRouter.delete('/', async (context, next) => { authRouter.delete('/', async (context, next) => {
checkPermissions(context, HOUSE_ROLES.LIEGE); checkPermissions(context, HOUSE_ROLES.lg);
try{ try{
await houseModel.deleteHouse(context.user.house_id, context.user.id); await houseModel.deleteHouse(context.user.house_id, context.user.id);
context.response.status = 204; context.response.status = 204;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment