Skip to content

Commit

Permalink
Remove redundant access check
Browse files Browse the repository at this point in the history
This access check was causing the upgrade_unattended script to fail.
The check is redundant, since the only product code has ensure access for the
same access level.
  • Loading branch information
vboctor committed Apr 9, 2016
1 parent 88f2521 commit 97fd55f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/plugin_api.php
Expand Up @@ -670,8 +670,6 @@ function plugin_is_installed( $p_basename ) {
* @return null
*/
function plugin_install( MantisPlugin $p_plugin ) {
access_ensure_global_level( config_get_global( 'manage_plugin_threshold' ) );

if( plugin_is_installed( $p_plugin->basename ) ) {
error_parameters( $p_plugin->basename );
trigger_error( ERROR_PLUGIN_ALREADY_INSTALLED, WARNING );
Expand Down

0 comments on commit 97fd55f

Please sign in to comment.