$login_required = TRUE; $use_theme = 'Beta'; //TODO : Remove this when new UI is completely implemented. include "includes/page.php"; require_once "{$path_prefix}/web/includes/functions/auto_email_notify.php"; require_once "user_page_functions.php"; global $query_count_on_page, $login_uid; $query_count_on_page = 0; // adding these lines because only network Owner can edit this page if ($network_info->type == MOTHER_NETWORK_TYPE) { $authorization_required = TRUE; $page_task = 'manage_themes'; //meta networks require_once "{$path_prefix}/web/includes/authorize.inc.php"; $configure_permission = check_user_permission($page_task); //set from authorize.inc.php } else { //old method for spawned networks $configure_permission = current_user_can('customize_ui'); } /********/ // For authentication $permission_denied_msg = ''; if (!$configure_permission) { $error = TRUE; $msg = "Sorry! you are not authorized to view the content of this page"; } function setup_module($column, $module, $obj) { global $network_info, $login_uid, $configure_permission;
/** Gets per-user editing permission with Multi-User plugin (v1.8.2 onwards) * Hook: common (requires another hook because MU overwrites the settings-user hook) */ public static function mu_getUserPermission() { global $USR; return check_user_permission($USR, 'KO_EDIT') === false ? 'false' : 'true'; }