From 614371c1faeaf708cac3f19a12f3340d56ab4599 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Fri, 15 Nov 2024 09:09:35 +0300 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 23260f1..6b52ebf 100644 --- a/qgis-app/plugins/views.py +++ b/qgis-app/plugins/views.py @@ -1278,7 +1278,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)