Skip to content

Commit

Permalink
... and admins can't install plugins too
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@9995 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Apr 2, 2011
1 parent 488a911 commit 22bd2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/plugins_list.php
Expand Up @@ -38,7 +38,7 @@
//--------------------------------------------------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.'));
}
Expand Down

0 comments on commit 22bd2f2

Please sign in to comment.