ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjLTIConsumerVerificationAccess.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 
16 {
17  public static function _getCommands()
18  {
19  $commands = array();
20  $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
21  return $commands;
22  }
23 
24  public static function _checkGoto($a_target)
25  {
26  global $DIC; /* @var \ILIAS\DI\Container $DIC */
27 
28  $t_arr = explode("_", $a_target);
29 
30  // #11021
31  // personal workspace context: do not force normal login
32  if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
33  include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php";
34  return ilSharedResourceGUI::hasAccess($t_arr[1]);
35  }
36 
37  if ($DIC->access()->checkAccess("read", "", $t_arr[1])) {
38  return true;
39  }
40  return false;
41  }
42 }
static hasAccess($a_node_id, $a_is_portfolio=false)
$DIC
Definition: xapitoken.php:46