-
Notifications
You must be signed in to change notification settings - Fork 0
/
oa_sheetnode.features.user_permission.inc
73 lines (64 loc) · 1.68 KB
/
oa_sheetnode.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
<?php
/**
* Implementation of hook_user_default_permissions().
*/
function oa_sheetnode_user_default_permissions() {
$permissions = array();
// Exported permission: create sheet template
$permissions['create sheet template'] = array(
'name' => 'create sheet template',
'roles' => array(
'0' => 'administrator',
'1' => 'manager',
),
);
// Exported permission: create sheetnode
$permissions['create sheetnode'] = array(
'name' => 'create sheetnode',
'roles' => array(
'0' => 'administrator',
'1' => 'authenticated user',
'2' => 'manager',
),
);
// Exported permission: delete any sheetnode
$permissions['delete any sheetnode'] = array(
'name' => 'delete any sheetnode',
'roles' => array(
'0' => 'administrator',
),
);
// Exported permission: delete own sheetnode
$permissions['delete own sheetnode'] = array(
'name' => 'delete own sheetnode',
'roles' => array(
'0' => 'administrator',
'1' => 'manager',
),
);
// Exported permission: edit any sheetnode
$permissions['edit any sheetnode'] = array(
'name' => 'edit any sheetnode',
'roles' => array(
'0' => 'administrator',
'1' => 'manager',
),
);
// Exported permission: edit own sheetnode
$permissions['edit own sheetnode'] = array(
'name' => 'edit own sheetnode',
'roles' => array(
'0' => 'administrator',
'1' => 'authenticated user',
'2' => 'manager',
),
);
// Exported permission: edit sheet settings
$permissions['edit sheet settings'] = array(
'name' => 'edit sheet settings',
'roles' => array(
'0' => 'administrator',
),
);
return $permissions;
}