From efd0b8acb3f4f098697c8c30bd196dacda39b704 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 18 Jul 2024 15:34:09 +0200 Subject: ogcp: add image restrict functionality Add center scope restriction using /image/restrict. Add view in Images to update scope permissions. Disable images in Commands for image update and restore if the client belongs to a disabled center. Consolidate template code to render scope selection checkboxes. --- ogcp/templates/images.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ogcp/templates/images.html') diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html index 00bb2e4..462e68d 100644 --- a/ogcp/templates/images.html +++ b/ogcp/templates/images.html @@ -67,6 +67,10 @@ {% endif %} + {% if current_user.get_permission('IMAGE', 'UPDATE') %} + + {% endif %} {% endif %} {% if btn_back %}