Skip to content
Snippets Groups Projects
Commit 301cb323 authored by Ronnie Friman's avatar Ronnie Friman
Browse files

added relation to groups

parent 1161b2a7
No related branches found
No related tags found
3 merge requests!59Development to master,!54Development to testing,!49Replay update
......@@ -42,7 +42,7 @@ export class RolesGuard implements CanActivate {
request.user = await this.getUserObject(request.headers.authorization);
const role = await this.game_PersonRepository.findOne({
where: { person: request.user['id'], game: gameId },
relations: ['faction'],
relations: ['faction', 'group'],
});
// add gameperson role to the request
// @GamePerson decorator can access it and pass it to service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment