fix gate
This commit is contained in:
parent
c6a814a6f4
commit
c8cce9422e
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue