Fix being an administrator when using 3rd-party auth provider

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-04-28 11:43:05 +02:00
parent f997f573ba
commit c91e8f6bf3
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ export default class ProviderValidate extends Vue {
id: userId,
email: userEmail,
isLoggedIn: true,
role: ICurrentUserRole.USER,
role: userRole,
},
});
const { data } = await this.$apollo.query<{ loggedUser: IUser }>({