mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user