Skip to content
Permalink
Browse files

restored access to the links module

  • Loading branch information...
caseysoftware committed Apr 6, 2014
1 parent b1e2386 commit c8a052540829ecbd5175d407e615b149e759a667
Showing with 7 additions and 5 deletions.
  1. +6 −0 modules/links/index.php
  2. +1 −5 modules/links/index_table.php
@@ -10,6 +10,12 @@
}
$project_id = $AppUI->getState('LinkIdxProject') !== null ? $AppUI->getState('LinkIdxProject') : 0;
$link = new CLink();
if (!$link->canAccess()) {
$AppUI->redirect(ACCESS_DENIED);
}
// get the list of visible companies
$extra = array('from' => 'links', 'where' => 'projects.project_id = link_project');
@@ -4,11 +4,7 @@
}
// @todo convert to template
global $AppUI, $canRead, $canEdit, $project_id, $task_id, $showProject, $tab, $search_string;
if (!$canRead) {
$AppUI->redirect(ACCESS_DENIED);
}
global $AppUI, $project_id, $task_id, $showProject, $tab, $search_string;
$type_filter = ($m == 'links') ? $tab-1 : -1;

0 comments on commit c8a0525

Please sign in to comment.
You can’t perform that action at this time.