-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrbv_project.features.og_features_permission.inc
83 lines (72 loc) · 2.45 KB
/
rbv_project.features.og_features_permission.inc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* @file
* rbv_project.features.og_features_permission.inc
*/
/**
* Implements hook_og_features_default_permissions().
*/
function rbv_project_og_features_default_permissions() {
$permissions = array();
// Exported og permission: 'node:org:create project content'
$permissions['node:org:create project content'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
),
);
// Exported og permission: 'node:org:delete any project content'
$permissions['node:org:delete any project content'] = array(
'roles' => array(),
);
// Exported og permission: 'node:org:delete own project content'
$permissions['node:org:delete own project content'] = array(
'roles' => array(),
);
// Exported og permission: 'node:org:update any project content'
$permissions['node:org:update any project content'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
),
);
// Exported og permission: 'node:org:update field_com_private_og field'
$permissions['node:org:update field_com_private_og field'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
),
);
// Exported og permission: 'node:org:update og_group_ref field'
$permissions['node:org:update og_group_ref field'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
),
);
// Exported og permission: 'node:org:update own project content'
$permissions['node:org:update own project content'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
),
);
// Exported og permission: 'node:org:view field_com_private_og field'
$permissions['node:org:view field_com_private_og field'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
'member' => 'member',
),
);
// Exported og permission: 'node:org:view og_group_ref field'
$permissions['node:org:view og_group_ref field'] = array(
'roles' => array(
'administrator member' => 'administrator member',
'editor member' => 'editor member',
'member' => 'member',
'non-member' => 'non-member',
),
);
return $permissions;
}