Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cbdiscord
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Geovanny E. Vera Pazmino
cbdiscord
Commits
06c1c5b9
Commit
06c1c5b9
authored
May 27, 2020
by
Geovanny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed permissions
parent
91bef4dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
route.js
server/house/route.js
+2
-2
No files found.
server/house/route.js
View file @
06c1c5b9
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment