21 public static function check($a_perm, $a_ref_id, $a_cmd =
"")
25 $ilAccess = $DIC->access();
27 case "edit_wiki_navigation":
28 return ($ilAccess->checkAccess(
"write",
"", $a_ref_id)
29 || $ilAccess->checkAccess(
"edit_wiki_navigation",
"", $a_ref_id));
30 case "delete_wiki_pages":
31 return ($ilAccess->checkAccess(
"write",
"", $a_ref_id)
32 || $ilAccess->checkAccess(
"delete_wiki_pages",
"", $a_ref_id));
33 case "activate_wiki_protection":
34 return ($ilAccess->checkAccess(
"write",
"", $a_ref_id)
35 || $ilAccess->checkAccess(
"activate_wiki_protection",
"", $a_ref_id));
36 case "wiki_html_export":
37 return ($ilAccess->checkAccess(
"write",
"", $a_ref_id)
38 || $ilAccess->checkAccess(
"wiki_html_export",
"", $a_ref_id));
40 return $ilAccess->checkAccess($a_perm, $a_cmd, $a_ref_id);
static check($a_perm, $a_ref_id, $a_cmd="")
Check permission.
Permission wrapper for wikis.