ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
acl.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file defines "named" access control lists, which can
5  * be reused in several places.
6  */
7 $config = array(
8 
9  'adminlist' => array(
10  //array('allow', 'equals', 'mail', 'admin1@example.org'),
11  //array('allow', 'has', 'groups', 'admin'),
12  // The default action is to deny access.
13  ),
14 
15  'example-simple' => array(
16  array('allow', 'equals', 'mail', 'admin1@example.org'),
17  array('allow', 'equals', 'mail', 'admin2@example.org'),
18  // The default action is to deny access.
19  ),
20 
21  'example-deny-some' => array(
22  array('deny', 'equals', 'mail', 'eviluser@example.org'),
23  array('allow'), // Allow everybody else.
24  ),
25 
26  'example-maildomain' => array(
27  array('allow', 'equals-preg', 'mail', '/@example\.org$/'),
28  // The default action is to deny access.
29  ),
30 
31  'example-allow-employees' => array(
32  array('allow', 'has', 'eduPersonAffiliation', 'employee'),
33  // The default action is to deny access.
34  ),
35 
36  'example-allow-employees-not-students' => array(
37  array('deny', 'has', 'eduPersonAffiliation', 'student'),
38  array('allow', 'has', 'eduPersonAffiliation', 'employee'),
39  // The default action is to deny access.
40  ),
41 
42  'example-deny-student-except-one' => array(
43  array('deny', 'and',
44  array('has', 'eduPersonAffiliation', 'student'),
45  array('not', 'equals', 'mail', 'user@example.org'),
46  ),
47  array('allow'),
48  ),
49 
50  'example-allow-or' => array(
51  array('allow', 'or',
52  array('equals', 'eduPersonAffiliation', 'student', 'member'),
53  array('equals', 'mail', 'someuser@example2.org'),
54  ),
55  ),
56 
57  'example-allow-all' => array(
58  array('allow'),
59  ),
60 
61 );
$config
Definition: acl.php:7