-
Notifications
You must be signed in to change notification settings - Fork 0
/
cu_alumni_class_notes_bundle.module
62 lines (59 loc) · 1.61 KB
/
cu_alumni_class_notes_bundle.module
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
62
<?php
/*
* Implements hook_secure_permissions
*
* Adding permissions for collection grid bean
*/
function cu_alumni_class_notes_bundle_secure_permissions($role) {
$permissions = array(
'anonymous user' => array(
),
'authenticated user' => array(
),
'administrator' => array(
'create class_note content',
'delete any class_note content',
'delete own class_note content',
'edit any class_note content',
'edit own class_note content',
),
'content_editor' => array(
'create class_note content',
'delete any class_note content',
'delete own class_note content',
'edit any class_note content',
'edit own class_note content',
),
'developer' => array(
'create class_note content',
'delete any class_note content',
'delete own class_note content',
'edit any class_note content',
'edit own class_note content',
),
'edit_my_content' => array(
'delete own class_note content',
'edit own class_note content',
),
'edit_only' => array(
'edit own class_note content',
),
'site_editor' => array(
'create class_note content',
'delete any class_note content',
'delete own class_note content',
'edit any class_note content',
'edit own class_note content',
),
'site_owner' => array(
'create class_note content',
'delete any class_note content',
'delete own class_note content',
'edit any class_note content',
'edit own class_note content',
),
);
if (isset($permissions[$role])) {
return $permissions[$role];
}
}