Add new role support. This enables designated users to see all jobs.

This commit is contained in:
Michael Schwarz
2022-08-23 13:33:25 +02:00
parent a0dafbac99
commit 84bac7e520
9 changed files with 21 additions and 12 deletions

View File

@@ -38,6 +38,10 @@
<input type="radio" id="admin" name="role" value="admin"/>
<label for="admin">Admin</label>
</div>
<div>
<input type="radio" id="support" name="role" value="support"/>
<label for="support">Support</label>
</div>
</div>
<p>
<code class="form-result"></code>
@@ -131,6 +135,7 @@
<option selected value="">Role...</option>
<option value="user">User</option>
<option value="admin">Admin</option>
<option value="support">Support</option>
<option value="api">API</option>
</select>
<button class="btn btn-outline-secondary" type="button" id="add-role-button">Button</button>

View File

@@ -55,6 +55,7 @@ func init() {
type User struct {
Username string // Username of the currently logged in user
IsAdmin bool
IsSupporter bool
}
type Page struct {