From 107593e2203112878e3a4df61b9c64385758f668 Mon Sep 17 00:00:00 2001 From: Lova ANDRIARIMALALA <43842786+Xpirix@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:46:30 +0200 Subject: [PATCH] Fix plugins version edit --- qgis-app/plugins/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgis-app/plugins/views.py b/qgis-app/plugins/views.py index 57ef6a8e..b02e3606 100644 --- a/qgis-app/plugins/views.py +++ b/qgis-app/plugins/views.py @@ -1263,7 +1263,7 @@ def version_update(request, package_name, version): return render( request, "plugins/version_permission_deny.html", {"plugin": plugin} ) - version = PluginVersion(plugin=plugin, created_by=request.user) + version.created_by = request.user is_trusted=request.user.has_perm("plugins.can_approve") return _version_update(request, plugin, version, is_trusted=is_trusted)