ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjExerciseVerificationAccess.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("classes/class.ilObjectAccess.php");
6 
16 {
29  function _getCommands()
30  {
31  $commands = array();
32  $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
33  return $commands;
34  }
35 
36  function _checkGoto($a_target)
37  {
38  global $ilAccess;
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  {
46  include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php";
47  return ilSharedResourceGUI::hasAccess($t_arr[1]);
48  }
49 
50  if ($ilAccess->checkAccess("read", "", $t_arr[1]))
51  {
52  return true;
53  }
54  return false;
55  }
56 }
57 
58 ?>