MantisBT: master 5824bb70

Author Committer Branch Timestamp Parent
dhx master 2009-06-16 15:56 master 545da5fc
Changeset

Remove hardcoded uses of ADMINISTRATOR constant

In custom installations it may be possible to have different
administrator access levels. An existing configuration option
$g_admin_site_threshold is used, alongside existing
user_is_administrator and current_user_is_administrator functions to
remove all hardcoded uses of the ADMINISTRATOR constant.

It is now possible to create your own administrator access level using
the custom_*_inc.php files. In some setups, you may even want to define
multiple different administrator access levels - even if it's just for
cosmetic reasons (different access level names appearing under each
user).

<span class="signoff">Signed-off-by: John Reese jreese@leetcode.net</span>

mod - core/config_api.php Diff File
mod - core/html_api.php Diff File
mod - admin/email_queue.php Diff File
mod - admin/copy_field.php Diff File
mod - manage_user_edit_page.php Diff File
mod - news_menu_page.php Diff File
mod - proj_doc_page.php Diff File
mod - account_prefs_update.php Diff File
mod - manage_overview_page.php Diff File
mod - manage_user_update.php Diff File
mod - admin/test_langs.php Diff File
mod - news_edit_page.php Diff File
mod - core/filter_api.php Diff File
mod - admin/move_db2disk.php Diff File
mod - core/print_api.php Diff File
mod - core/user_api.php Diff File
mod - core/plugin_api.php Diff File
mod - admin/system_utils.php Diff File
mod - admin/index.php Diff File
mod - admin/test_icons.php Diff File
mod - admin/upgrade_warning.php Diff File
mod - api/soap/mc_project_api.php Diff File
mod - admin/db_stats.php Diff File
mod - admin/check.php Diff File
mod - admin/test_email.php Diff File
mod - core/access_api.php Diff File