-
Notifications
You must be signed in to change notification settings - Fork 0
/
discimport_discount.features.user_permission.inc
159 lines (142 loc) · 5.57 KB
/
discimport_discount.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/**
* @file
* discimport_discount.features.user_permission.inc
*/
/**
* Implements hook_user_default_permissions().
*/
function discimport_discount_user_default_permissions() {
$permissions = array();
// Exported permission: 'administer giftcard transactions'.
$permissions['administer giftcard transactions'] = array(
'name' => 'administer giftcard transactions',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_gc',
);
// Exported permission: 'administer giftcards'.
$permissions['administer giftcards'] = array(
'name' => 'administer giftcards',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_gc',
);
// Exported permission: 'create commerce_coupon entities of bundle giftcard_coupon'.
$permissions['create commerce_coupon entities of bundle giftcard_coupon'] = array(
'name' => 'create commerce_coupon entities of bundle giftcard_coupon',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_coupon',
);
// Exported permission: 'create new giftcard transactions'.
$permissions['create new giftcard transactions'] = array(
'name' => 'create new giftcard transactions',
'roles' => array(
'administrator' => 'administrator',
'authenticated user' => 'authenticated user',
'store administrator' => 'store administrator',
),
'module' => 'commerce_gc',
);
// Exported permission: 'delete giftcard transactions'.
$permissions['delete giftcard transactions'] = array(
'name' => 'delete giftcard transactions',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_gc',
);
// Exported permission: 'edit any commerce_coupon entity of bundle giftcard_coupon'.
$permissions['edit any commerce_coupon entity of bundle giftcard_coupon'] = array(
'name' => 'edit any commerce_coupon entity of bundle giftcard_coupon',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_coupon',
);
// Exported permission: 'edit own commerce_coupon entities of bundle giftcard_coupon'.
$permissions['edit own commerce_coupon entities of bundle giftcard_coupon'] = array(
'name' => 'edit own commerce_coupon entities of bundle giftcard_coupon',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_coupon',
);
// Exported permission: 'redeem coupons of type giftcard_coupon'.
$permissions['redeem coupons of type giftcard_coupon'] = array(
'name' => 'redeem coupons of type giftcard_coupon',
'roles' => array(),
'module' => 'commerce_coupon',
);
// Exported permission: 'redeem non user specific coupons of type giftcard_coupon'.
$permissions['redeem non user specific coupons of type giftcard_coupon'] = array(
'name' => 'redeem non user specific coupons of type giftcard_coupon',
'roles' => array(
'anonymous user' => 'anonymous user',
'authenticated user' => 'authenticated user',
),
'module' => 'commerce_coupon_user',
);
// Exported permission: 'redeem received coupons of type giftcard_coupon'.
$permissions['redeem received coupons of type giftcard_coupon'] = array(
'name' => 'redeem received coupons of type giftcard_coupon',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'commerce_coupon_user',
);
// Exported permission: 'view any commerce_coupon entity of bundle giftcard_coupon'.
$permissions['view any commerce_coupon entity of bundle giftcard_coupon'] = array(
'name' => 'view any commerce_coupon entity of bundle giftcard_coupon',
'roles' => array(
'administrator' => 'administrator',
'store administrator' => 'store administrator',
),
'module' => 'commerce_coupon',
);
// Exported permission: 'view non user specific coupons of type giftcard_coupon'.
$permissions['view non user specific coupons of type giftcard_coupon'] = array(
'name' => 'view non user specific coupons of type giftcard_coupon',
'roles' => array(
'administrator' => 'administrator',
),
'module' => 'commerce_coupon_user',
);
// Exported permission: 'view own commerce_coupon entities of bundle giftcard_coupon'.
$permissions['view own commerce_coupon entities of bundle giftcard_coupon'] = array(
'name' => 'view own commerce_coupon entities of bundle giftcard_coupon',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'commerce_coupon',
);
// Exported permission: 'view own giftcard transactions'.
$permissions['view own giftcard transactions'] = array(
'name' => 'view own giftcard transactions',
'roles' => array(
'administrator' => 'administrator',
'authenticated user' => 'authenticated user',
'store administrator' => 'store administrator',
),
'module' => 'commerce_gc',
);
// Exported permission: 'view received coupons of type giftcard_coupon'.
$permissions['view received coupons of type giftcard_coupon'] = array(
'name' => 'view received coupons of type giftcard_coupon',
'roles' => array(
'authenticated user' => 'authenticated user',
),
'module' => 'commerce_coupon_user',
);
return $permissions;
}