Skip to content
Snippets Groups Projects
Verified Commit 23da1a57 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Presun generatoru jitsi tokenu

parent 8a766512
No related branches found
No related tags found
No related merge requests found
......@@ -11,15 +11,16 @@ sub me ($c){
my $formatted = $user->formatted;
if (
( $user->jitsi_allowed || $user->roles =~ /chairman/ )
( $user->jitsi_allowed || $user->roles =~ /chairman|jitsi/ )
&& $c->cfg->{jitsi_base_url}
&& $c->cfg->{jitsi_room}
) {
$formatted->{jitsi_url} = join ('',
$c->cfg->{jitsi_base_url},
$formatted->{jitsi_url} = $c->jitsi_url(
$c->cfg->{jitsi_room},
'?jwt=',
$c->jitsi_token($c->cfg->{jitsi_room}),
$c->cfg->{jitsi_token_lifetime},
$user->get_columns,
moderator => $user->roles =~ /chairman/,
email => $c->oauth_claims->{mail},
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment