Skip to content

Instantly share code, notes, and snippets.

@Sean-Der
Last active May 17, 2021 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sean-Der/0e64e77d03c426dd08b4913b3323ddb0 to your computer and use it in GitHub Desktop.
Save Sean-Der/0e64e77d03c426dd08b4913b3323ddb0 to your computer and use it in GitHub Desktop.
diff --git a/group/group.go b/group/group.go
index e6cbb74..c5d4fb9 100644
--- a/group/group.go
+++ b/group/group.go
@@ -878,9 +878,7 @@ func (desc *Description) GetPermission(group string, c Challengeable) (ClientPer
if good {
p.Op = true
p.Present = true
- if desc.AllowRecording {
- p.Record = true
- }
+ p.Record = true
return p, nil
}
return p, ErrNotAuthorised
@@ -888,12 +886,14 @@ func (desc *Description) GetPermission(group string, c Challengeable) (ClientPer
if found, good := matchClient(group, c, desc.Presenter); found {
if good {
p.Present = true
+ p.Record = true
return p, nil
}
return p, ErrNotAuthorised
}
if found, good := matchClient(group, c, desc.Other); found {
if good {
+ p.Record = true
return p, nil
}
return p, ErrNotAuthorised
diff --git a/static/galene.html b/static/galene.html
index 1786929..4e39385 100644
--- a/static/galene.html
+++ b/static/galene.html
@@ -110,12 +110,12 @@
<div class="login-container invisible" id="login-container">
<div class="login-box">
<form id="userform" class="userform">
- <label for="username">Username</label>
+ <label for="username">Name</label>
<input id="username" type="text" name="username"
autocomplete="username" class="form-control"/>
- <label for="password">Password</label>
- <input id="password" type="password" name="password"
- autocomplete="current-password" class="form-control"/>
+ <label class="invisible" for="password">Password</label>
+ <input class="invisible" id="password" type="password" name="password"
+ autocomplete="current-password" class="form-control" />
<label>Auto ready</label>
<div class="present-switch">
<p class="switch-radio">
diff --git a/static/index.html b/static/index.html
index e5d9d7f..494fc2c 100644
--- a/static/index.html
+++ b/static/index.html
@@ -8,6 +8,7 @@
<link rel="stylesheet" href="/mainpage.css">
<link rel="stylesheet" type="text/css" href="/galene.css"/>
<link rel="author" href="https://www.irif.fr/~jch/"/>
+ <meta http-equiv="refresh" content="0; URL=https://unconf.wonder.me/event" />
</head>
<body>
#!/bin/bash
for i in {0..500}
do
read -r -d '' VAR << EOM
{
"op": [{"username": "session-$i", "password": "session-$i"}],
"presenter": [{}],
"allow-recording": true
}
EOM
echo "$VAR" >> "session-$i.json"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment