Skip to content
Snippets Groups Projects
Commit 2453d42f authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Merge branch '396-creators-authorization-fails-in-several-components' into 'master'

Fix authorization for lecturers

Closes #396

See merge request !379
parents 3ebe6af0 1eda71b5
Branches
Tags
1 merge request!379Fix authorization for lecturers
Pipeline #30178 passed with stages
in 8 minutes and 37 seconds
...@@ -46,7 +46,7 @@ export class AuthenticationService { ...@@ -46,7 +46,7 @@ export class AuthenticationService {
let role = UserRole.PARTICIPANT; let role = UserRole.PARTICIPANT;
const roleAsNumber: string = cA.substring(0, 1); const roleAsNumber: string = cA.substring(0, 1);
const roomId: string = cA.substring(2); const roomId: string = cA.substring(2);
if (roleAsNumber === '1') { if (roleAsNumber === '3') {
role = UserRole.CREATOR; role = UserRole.CREATOR;
} else if (roleAsNumber === '2') { } else if (roleAsNumber === '2') {
role = UserRole.EXECUTIVE_MODERATOR; role = UserRole.EXECUTIVE_MODERATOR;
......
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