-
Notifications
You must be signed in to change notification settings - Fork 0
/
ding_wiki.features.user_permission.inc
131 lines (116 loc) · 3.33 KB
/
ding_wiki.features.user_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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
/**
* Implementation of hook_user_default_permissions().
*/
function ding_wiki_user_default_permissions() {
$permissions = array();
// Exported permission: access nodes
$permissions['access nodes'] = array(
'name' => 'access nodes',
'roles' => array(
'0' => 'administrator',
'1' => 'anonymous user',
'2' => 'authenticated user',
),
);
// Exported permission: administer node access settings
$permissions['administer node access settings'] = array(
'name' => 'administer node access settings',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: administer node settings
$permissions['administer node settings'] = array(
'name' => 'administer node settings',
'roles' => array(
'0' => 'administrator',
'1' => 'author',
'2' => 'editor',
),
);
// Exported permission: administer node type access settings
$permissions['administer node type access settings'] = array(
'name' => 'administer node type access settings',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: create node content
$permissions['create node content'] = array(
'name' => 'create node content',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: create wiki_page content
$permissions['create wiki_page content'] = array(
'name' => 'create wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'anonymous user',
'2' => 'authenticated user',
),
);
// Exported permission: delete any wiki_page content
$permissions['delete any wiki_page content'] = array(
'name' => 'delete any wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'editor',
),
);
// Exported permission: delete node content
$permissions['delete node content'] = array(
'name' => 'delete node content',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: delete own wiki_page content
$permissions['delete own wiki_page content'] = array(
'name' => 'delete own wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'author',
'2' => 'editor',
),
);
// Exported permission: edit any wiki_page content
$permissions['edit any wiki_page content'] = array(
'name' => 'edit any wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'anonymous user',
'2' => 'authenticated user',
'3' => 'author',
'4' => 'editor',
),
);
// Exported permission: edit node content
$permissions['edit node content'] = array(
'name' => 'edit node content',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: edit own wiki_page content
$permissions['edit own wiki_page content'] = array(
'name' => 'edit own wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'author',
'2' => 'editor',
),
);
// Exported permission: view revisions of wiki_page content
$permissions['view revisions of wiki_page content'] = array(
'name' => 'view revisions of wiki_page content',
'roles' => array(
'0' => 'administrator',
'1' => 'anonymous user',
'2' => 'authenticated user',
),
);
return $permissions;
}