Skip to content

Commit

Permalink
Fix LTI plugin start page - refs #5333
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Sep 14, 2016
1 parent 43f1870 commit 2c4dad0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/ims_lti/start.php
Expand Up @@ -2,20 +2,20 @@
/* For license terms, see /license.txt */
require '../../main/inc/global.inc.php';

api_protect_course_script();

$toolId = isset($_GET['id']) ? intval($_GET['id']) : 0;

if (empty($toolId)) {
if (api_is_platform_admin()) {
header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/create.php');
header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/list.php');
exit;
}

api_not_allowed(true);
exit;
}

api_protect_course_script();

$imsLtiPlugin = ImsLtiPlugin::create();

$tool = ImsLtiTool::fetch($toolId);
Expand Down

0 comments on commit 2c4dad0

Please sign in to comment.