Skip to content

Commit

Permalink
Fix php error for access check
Browse files Browse the repository at this point in the history
Check that logged in user is administrator rather than a config option
that doesn't exist.
  • Loading branch information
vboctor committed Apr 14, 2016
1 parent 15b93af commit b796418
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/import_users_page_col_set.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Mantis - a php based bugtracking system
require_once( 'core.php' );
plugin_require_api( 'core/import_users_api.php' );
access_ensure_project_level( plugin_config_get ( 'import_users_threshold' ) );
access_ensure_global_level( ADMINISTRATOR );
layout_page_header( plugin_lang_get( 'manage_users' ) );
layout_page_begin();

Expand Down
2 changes: 1 addition & 1 deletion pages/import_users_page_init.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Mantis - a php based bugtracking system
require_once( 'core.php' );
plugin_require_api( 'core/import_users_api.php' );
access_ensure_project_level( plugin_config_get( 'import_users_threshold' ) );
access_ensure_global_level( ADMINISTRATOR );

layout_page_header( plugin_lang_get( 'manage_users' ) );
layout_page_begin();
Expand Down

0 comments on commit b796418

Please sign in to comment.