<?php
/**
 * Role/permission model for the test build.
 * Existing WebEngine admins inherit superadmin for backward compatibility.
 */
return array(
    'roles' => array(
        'superadmin' => array('*'),
        'administrator' => array(
            'dashboard.view', 'accounts.view', 'accounts.edit', 'characters.view', 'characters.edit',
            'bans.view', 'bans.manage', 'credits.view', 'credits.manage', 'payments.view',
            'content.view', 'content.manage', 'system.view', 'system.manage', 'plugins.manage'
        ),
        'gm' => array('dashboard.view', 'accounts.view', 'characters.view', 'bans.view', 'bans.manage'),
        'support' => array('dashboard.view', 'accounts.view', 'characters.view', 'bans.view'),
        'content' => array('dashboard.view', 'content.view', 'content.manage'),
    ),
    // Optional explicit assignments. Existing webengine.json admins do not need to be repeated here.
    'users' => array(
        // 'username' => array('administrator'),
    ),
    'module_permissions' => array(
        'home' => 'dashboard.view',
        'searchaccount' => 'accounts.view', 'accountsfromip' => 'accounts.view', 'onlineaccounts' => 'accounts.view',
        'newregistrations' => 'accounts.view', 'accountinfo' => 'accounts.view',
        'searchcharacter' => 'characters.view', 'editcharacter' => 'characters.edit',
        'searchban' => 'bans.view', 'banaccount' => 'bans.manage', 'latestbans' => 'bans.manage', 'blockedips' => 'bans.manage',
        'creditsconfigs' => 'credits.manage', 'creditsmanager' => 'credits.manage', 'topvotes' => 'credits.view',
        'latestpaypal' => 'payments.view',
        'addnews' => 'content.manage', 'managenews' => 'content.manage', 'migrate_news_types' => 'content.manage',
        'admincp_access' => 'system.manage', 'connection_settings' => 'system.manage', 'realm_connections' => 'system.manage',
        'website_settings' => 'system.manage', 'modules_manager' => 'system.manage', 'navbar' => 'content.manage',
        'media_gallery' => 'content.manage', 'content_hub' => 'content.manage', 'benefits' => 'content.manage',
        'music' => 'content.manage', 'community_links' => 'content.manage', 'usercp' => 'content.manage', 'staff' => 'system.manage',
        'cachemanager' => 'system.manage', 'cronmanager' => 'system.manage', 'phrases' => 'content.manage',
        'plugins' => 'plugins.manage', 'plugin_install' => 'plugins.manage',
        'security_overview' => 'system.view',
        'access_control' => 'system.manage',
        'account_reconciliation' => 'accounts.view',
    ),
);
