Skip to content

Fix filter by dag and require design rights instead of report rights … #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down Expand Up @@ -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)
Expand Down