bug:2426 admins shouldn't be able to perform any action on plugins

git-svn-id: http://piwigo.org/svn/trunk@12033 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2011-09-02 09:08:43 +00:00
parent bd7f8c0ba2
commit 153d591c5d

View File

@@ -62,7 +62,7 @@ $plugins = new plugins();
//--------------------------------------------------perform requested actions
if (isset($_GET['action']) and isset($_GET['plugin']))
{
if (in_array($_GET['action'], array('install', 'uninstall')) AND !is_webmaster())
if (!is_webmaster())
{
array_push($page['errors'], l10n('Webmaster status is required.'));
}