ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.ilObjLTIToolVerificationAccess.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
31 public static function _getCommands(): array
32 {
33 return [
34 [
35 'permission' => 'read',
36 'cmd' => 'view',
37 'lang_var' => 'show',
38 'default' => true,
39 ],
40 ];
41 }
42
43 public static function _checkGoto(string $target): bool
44 {
45 global $DIC;
46
47 $parts = explode('_', $target);
48
49 // a verification shared in the personal workspace is read without the usual repository login
50 if (($parts[2] ?? '') === 'wsp') {
51 return ilSharedResourceGUI::hasAccess((int) $parts[1]);
52 }
53
54 return $DIC->access()->checkAccess('read', '', (int) $parts[1]);
55 }
56}
Access checks of the object type ltiv.
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