summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-04-20 13:57:08 +0200
committerMax Magorsch <arzano@gentoo.org>2020-04-20 13:57:08 +0200
commit22d233dcc865326ff9b04726ef3c5f32a414dda4 (patch)
tree84208cd3d22951b4dd7f606a8105146bd8353835 /web
parentAdd a page to manually enter a cve (diff)
downloadglsamaker-22d233dcc865326ff9b04726ef3c5f32a414dda4.tar.gz
glsamaker-22d233dcc865326ff9b04726ef3c5f32a414dda4.tar.bz2
glsamaker-22d233dcc865326ff9b04726ef3c5f32a414dda4.zip
Add permission for manually creating CVEs
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/admin/components/permissions.tmpl20
1 files changed, 18 insertions, 2 deletions
diff --git a/web/templates/admin/components/permissions.tmpl b/web/templates/admin/components/permissions.tmpl
index 32b7dc6..b3b3cf4 100644
--- a/web/templates/admin/components/permissions.tmpl
+++ b/web/templates/admin/components/permissions.tmpl
@@ -11,7 +11,7 @@
<tr>
<td style="border-top:none;"></td>
<th colspan="11" class="border-0">GLSA</th>
- <th colspan="6" class="border-0">CVE</th>
+ <th colspan="7" class="border-0">CVE</th>
<th colspan="4" class="border-0">Admin</th>
</tr>
<tr>
@@ -60,6 +60,9 @@
<th title="Add comments to CVEs">
<i class="fa fa-commenting-o" aria-hidden="true"></i>
</th>
+ <th title="Manually create CVEs">
+ <i class="fa fa-plus" aria-hidden="true"></i>
+ </th>
<th title="Add packages to CVEs">
<i class="fa fa-hdd-o" aria-hidden="true"></i>
</th>
@@ -189,6 +192,13 @@
{{end}}
</td>
<td>
+ {{if .Permissions.CVETool.AddCVE}}
+ <i class="fa fa-check" style="color: green;" aria-hidden="true"></i>
+ {{else}}
+ <i class="fa fa-times" style="color: darkred;" aria-hidden="true"></i>
+ {{end}}
+ </td>
+ <td>
{{if .Permissions.CVETool.AddPackage}}
<i class="fa fa-check" style="color: green;" aria-hidden="true"></i>
{{else}}
@@ -265,7 +275,7 @@
<tr>
<td style="border-top:none;"></td>
<th colspan="11" class="border-0">GLSA</th>
- <th colspan="6" class="border-0">CVE</th>
+ <th colspan="7" class="border-0">CVE</th>
<th colspan="4" class="border-0">Admin</th>
</tr>
<tr>
@@ -314,6 +324,9 @@
<th title="Add comments to CVEs">
<i class="fa fa-commenting-o" aria-hidden="true"></i>
</th>
+ <th title="Manually create CVEs">
+ <i class="fa fa-plus" aria-hidden="true"></i>
+ </th>
<th title="Add packages to CVEs">
<i class="fa fa-hdd-o" aria-hidden="true"></i>
</th>
@@ -390,6 +403,9 @@
<input name="cve-comment" type="checkbox" value="{{.Id}}" {{if .Permissions.CVETool.Comment}}checked{{end}}/>
</td>
<td>
+ <input name="cve-addCVE" type="checkbox" value="{{.Id}}" {{if .Permissions.CVETool.AddCVE}}checked{{end}}/>
+ </td>
+ <td>
<input name="cve-addPackage" type="checkbox" value="{{.Id}}" {{if .Permissions.CVETool.AddPackage}}checked{{end}}/>
</td>
<td>