diff --git a/index.php b/index.php index f785625..a9442d4 100644 --- a/index.php +++ b/index.php @@ -59,8 +59,8 @@ if (!empty($settings)) $config = array_merge($config,$settings); $debug['config_after_settings'] = $config; -// Determien whether or not the current user can 'edit' the custom dashboard (requires reports rights) -$config['can_edit'] = (SUPER_USER || $user_rights['reports']); +// Determien whether or not the current user can 'edit' the custom dashboard (requires design rights) +$config['can_edit'] = (SUPER_USER || $user_rights['design']); // This is the initial load (via GET) - so lets render the page if (empty($_POST)) { @@ -824,7 +824,7 @@ public static function wrapVerticalSpan($content, $attributes = array()) { // New method for making the actual table public static function getTable($config) { - global $Proj, $DDP, $project_id, $table_pk_label, $lang, $surveys_enabled, $debug; + global $Proj, $DDP, $project_id, $table_pk_label, $lang, $surveys_enabled, $debug, $user_rights; $last_lap_ts = microtime(true); // Get all records (filtering for arm if set)