ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjExerciseVerificationAccess.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
26 {
27  public static function _getCommands(): array
28  {
29  $commands = [];
30  $commands[] = ['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show', 'default' => true];
31  return $commands;
32  }
33 
34  public static function _checkGoto($a_target): bool
35  {
36  global $DIC;
37 
38  $ilAccess = $DIC->access();
39 
40  $t_arr = explode('_', $a_target);
41 
42  // #11021
43  // personal workspace context: do not force normal login
44  if (isset($t_arr[2]) && $t_arr[2] === 'wsp') {
45  return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
46  }
47  return (bool) $ilAccess->checkAccess('read', '', (int) $t_arr[1]);
48  }
49 }
global $DIC
Definition: feed.php:28
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...