ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjLTIConsumerVerificationAccess.php
Go to the documentation of this file.
1<?php
2
19declare(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}
static _checkGoto(string $target)
check whether goto script will succeed
Class ilObjectAccess.
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
global $DIC
Definition: shib_login.php:26