-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacl.php
61 lines (50 loc) · 1.54 KB
/
acl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/*
* This file defines "named" access control lists, which can
* be reused in several places.
*/
$config = array(
'adminlist' => array(
//array('allow', 'equals', 'mail', '[email protected]'),
//array('allow', 'has', 'groups', 'admin'),
// The default action is to deny access.
),
'example-simple' => array(
array('allow', 'equals', 'mail', '[email protected]'),
array('allow', 'equals', 'mail', '[email protected]'),
// The default action is to deny access.
),
'example-deny-some' => array(
array('deny', 'equals', 'mail', '[email protected]'),
array('allow'), // Allow everybody else.
),
'example-maildomain' => array(
array('allow', 'equals-preg', 'mail', '/@example\.org$/'),
// The default action is to deny access.
),
'example-allow-employees' => array(
array('allow', 'has', 'eduPersonAffiliation', 'employee'),
// The default action is to deny access.
),
'example-allow-employees-not-students' => array(
array('deny', 'has', 'eduPersonAffiliation', 'student'),
array('allow', 'has', 'eduPersonAffiliation', 'employee'),
// The default action is to deny access.
),
'example-deny-student-except-one' => array(
array('deny', 'and',
array('has', 'eduPersonAffiliation', 'student'),
array('not', 'equals', 'mail', '[email protected]'),
),
array('allow'),
),
'example-allow-or' => array(
array('allow', 'or',
array('equals', 'eduPersonAffiliation', 'student', 'member'),
array('equals', 'mail', '[email protected]'),
),
),
'example-allow-all' => array(
array('allow'),
),
);