aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-04-02 14:48:14 +0000
committermistic100 <mistic@piwigo.org>2011-04-02 14:48:14 +0000
commit22bd2f26d32b217a558067f5027487b4ee8cca5e (patch)
treef3c29cc40b6c0128d4d5ade66a5f564e13bc78a9 /admin
parent488a911657c084a4a7201c2fde0a1ca074875345 (diff)
... and admins can't install plugins too
git-svn-id: http://piwigo.org/svn/trunk@9995 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/plugins_list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/plugins_list.php b/admin/plugins_list.php
index 1a25ce009..21e8ec3f2 100644
--- a/admin/plugins_list.php
+++ b/admin/plugins_list.php
@@ -38,7 +38,7 @@ $plugins = new plugins();
//--------------------------------------------------perform requested actions
if (isset($_GET['action']) and isset($_GET['plugin']))
{
- if ($_GET['action'] == 'uninstall' AND !is_webmaster())
+ if (in_array($_GET['action'], array('install', 'uninstall')) AND !is_webmaster())
{
array_push($page['errors'], l10n('Webmaster status is required.'));
}