revert permission check change

This commit is contained in:
Matthias Mair 2026-06-22 23:24:30 +02:00
parent 1839d385ca
commit 92cc86c37f
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 not user or not user.is_superuser:
if user and not user.is_superuser:
raise ValidationError(_('Only superuser accounts can administer plugins'))
if settings.PLUGINS_INSTALL_DISABLED: