ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjLTIConsumerVerificationAccess.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
31 {
35  public static function _getCommands(): array
36  {
37  $commands = array();
38  $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
39  return $commands;
40  }
41 
42  public static function _checkGoto(string $target): bool
43  {
44  global $DIC; /* @var \ILIAS\DI\Container $DIC */
45 
46  $t_arr = explode("_", $target);
47 
48  // #11021
49  // personal workspace context: do not force normal login
50  if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
51  return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
52  }
53  return (bool) $DIC->access()->checkAccess("read", "", (int) $t_arr[1]);
54  }
55 }
global $DIC
Definition: shib_login.php:22
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)