[Patchew-devel] [PATCH] git: do not require superuser permissions to edit configuration
Paolo Bonzini
pbonzini at redhat.com
Thu Mar 8 06:41:25 UTC 2018
Currently, mods/git.py only shows the config box to superusers. This
was a mistake, so fix it.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
Applied.
mods/git.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/mods/git.py b/mods/git.py
index b0df7e8..df4185a 100644
--- a/mods/git.py
+++ b/mods/git.py
@@ -193,8 +193,6 @@ class GitModule(PatchewModule):
})
def prepare_project_hook(self, request, project):
- if not request.user.is_superuser:
- return
project.extra_info.append({"title": "Git configuration",
"class": "info",
"content_html": self.build_config_html(request,
--
2.14.3
More information about the Patchew-devel
mailing list