-
Notifications
You must be signed in to change notification settings - Fork 2
/
luggage_blog.features.user_permission.inc
60 lines (53 loc) · 1.55 KB
/
luggage_blog.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
<?php
/**
* @file
* luggage_blog.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function luggage_blog_user_default_permissions() {
$permissions = array();
// Exported permission: 'create lug_blog content'.
$permissions['create lug_blog content'] = array(
'name' => 'create lug_blog content',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
// Exported permission: 'delete any lug_blog content'.
$permissions['delete any lug_blog content'] = array(
'name' => 'delete any lug_blog content',
'roles' => array(
'content publisher' => 'content publisher',
),
'module' => 'node',
);
// Exported permission: 'delete own lug_blog content'.
$permissions['delete own lug_blog content'] = array(
'name' => 'delete own lug_blog content',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
// Exported permission: 'edit any lug_blog content'.
$permissions['edit any lug_blog content'] = array(
'name' => 'edit any lug_blog content',
'roles' => array(
'content editor' => 'content editor',
'content publisher' => 'content publisher',
),
'module' => 'node',
);
// Exported permission: 'edit own lug_blog content'.
$permissions['edit own lug_blog content'] = array(
'name' => 'edit own lug_blog content',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'node',
);
return $permissions;
}