mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-03 16:32:22 +02:00
... and admins can't install plugins too
git-svn-id: http://piwigo.org/svn/trunk@9995 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user