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