This commit is contained in:
Matthias Mair 2026-06-22 22:23:51 +02:00
parent c6a814a6f4
commit c8cce9422e
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ def install_plugin(
url: Optional URL to install from
version: Optional version specifier
"""
if user and not user.is_superuser:
if not user or not user.is_superuser:
raise ValidationError(_('Only superuser accounts can administer plugins'))
if settings.PLUGINS_INSTALL_DISABLED: