materio_subscriptions.features.user_permission.inc 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <?php
  2. /**
  3. * @file
  4. * materio_subscriptions.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function materio_subscriptions_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: administer attributes.
  12. $permissions['administer attributes'] = array(
  13. 'name' => 'administer attributes',
  14. 'roles' => array(
  15. 0 => 'root',
  16. ),
  17. 'module' => 'uc_attribute',
  18. );
  19. // Exported permission: administer cart links.
  20. $permissions['administer cart links'] = array(
  21. 'name' => 'administer cart links',
  22. 'roles' => array(
  23. 0 => 'root',
  24. ),
  25. 'module' => 'uc_cart_links',
  26. );
  27. // Exported permission: administer credit cards.
  28. $permissions['administer credit cards'] = array(
  29. 'name' => 'administer credit cards',
  30. 'roles' => array(
  31. 0 => 'root',
  32. ),
  33. 'module' => 'uc_credit',
  34. );
  35. // Exported permission: administer order workflow.
  36. $permissions['administer order workflow'] = array(
  37. 'name' => 'administer order workflow',
  38. 'roles' => array(
  39. 0 => 'root',
  40. ),
  41. 'module' => 'uc_order',
  42. );
  43. // Exported permission: administer own product features.
  44. $permissions['administer own product features'] = array(
  45. 'name' => 'administer own product features',
  46. 'roles' => array(
  47. 0 => 'root',
  48. ),
  49. 'module' => 'uc_product',
  50. );
  51. // Exported permission: administer product attributes.
  52. $permissions['administer product attributes'] = array(
  53. 'name' => 'administer product attributes',
  54. 'roles' => array(
  55. 0 => 'root',
  56. ),
  57. 'module' => 'uc_attribute',
  58. );
  59. // Exported permission: administer product classes.
  60. $permissions['administer product classes'] = array(
  61. 'name' => 'administer product classes',
  62. 'roles' => array(
  63. 0 => 'root',
  64. ),
  65. 'module' => 'uc_product',
  66. );
  67. // Exported permission: administer product features.
  68. $permissions['administer product features'] = array(
  69. 'name' => 'administer product features',
  70. 'roles' => array(
  71. 0 => 'root',
  72. ),
  73. 'module' => 'uc_product',
  74. );
  75. // Exported permission: administer product options.
  76. $permissions['administer product options'] = array(
  77. 'name' => 'administer product options',
  78. 'roles' => array(
  79. 0 => 'root',
  80. ),
  81. 'module' => 'uc_attribute',
  82. );
  83. // Exported permission: administer products.
  84. $permissions['administer products'] = array(
  85. 'name' => 'administer products',
  86. 'roles' => array(
  87. 0 => 'root',
  88. ),
  89. 'module' => 'uc_product',
  90. );
  91. // Exported permission: administer store.
  92. $permissions['administer store'] = array(
  93. 'name' => 'administer store',
  94. 'roles' => array(
  95. 0 => 'root',
  96. ),
  97. 'module' => 'uc_store',
  98. );
  99. // Exported permission: create orders.
  100. $permissions['create orders'] = array(
  101. 'name' => 'create orders',
  102. 'roles' => array(
  103. 0 => 'root',
  104. ),
  105. 'module' => 'uc_order',
  106. );
  107. // Exported permission: create product content.
  108. $permissions['create product content'] = array(
  109. 'name' => 'create product content',
  110. 'roles' => array(
  111. 0 => 'root',
  112. ),
  113. 'module' => 'node',
  114. );
  115. // Exported permission: delete any product content.
  116. $permissions['delete any product content'] = array(
  117. 'name' => 'delete any product content',
  118. 'roles' => array(
  119. 0 => 'root',
  120. ),
  121. 'module' => 'node',
  122. );
  123. // Exported permission: delete orders.
  124. $permissions['delete orders'] = array(
  125. 'name' => 'delete orders',
  126. 'roles' => array(
  127. 0 => 'root',
  128. ),
  129. 'module' => 'uc_order',
  130. );
  131. // Exported permission: delete own product content.
  132. $permissions['delete own product content'] = array(
  133. 'name' => 'delete own product content',
  134. 'roles' => array(
  135. 0 => 'root',
  136. ),
  137. 'module' => 'node',
  138. );
  139. // Exported permission: edit any product content.
  140. $permissions['edit any product content'] = array(
  141. 'name' => 'edit any product content',
  142. 'roles' => array(
  143. 0 => 'root',
  144. ),
  145. 'module' => 'node',
  146. );
  147. // Exported permission: edit orders.
  148. $permissions['edit orders'] = array(
  149. 'name' => 'edit orders',
  150. 'roles' => array(
  151. 0 => 'root',
  152. ),
  153. 'module' => 'uc_order',
  154. );
  155. // Exported permission: edit own product content.
  156. $permissions['edit own product content'] = array(
  157. 'name' => 'edit own product content',
  158. 'roles' => array(
  159. 0 => 'root',
  160. ),
  161. 'module' => 'node',
  162. );
  163. // Exported permission: manage store coupons.
  164. $permissions['manage store coupons'] = array(
  165. 'name' => 'manage store coupons',
  166. 'roles' => array(
  167. 0 => 'administrator',
  168. 1 => 'root',
  169. ),
  170. 'module' => 'uc_coupon',
  171. );
  172. // Exported permission: process credit cards.
  173. $permissions['process credit cards'] = array(
  174. 'name' => 'process credit cards',
  175. 'roles' => array(
  176. 0 => 'root',
  177. ),
  178. 'module' => 'uc_credit',
  179. );
  180. // Exported permission: unconditionally delete orders.
  181. $permissions['unconditionally delete orders'] = array(
  182. 'name' => 'unconditionally delete orders',
  183. 'roles' => array(
  184. 0 => 'root',
  185. ),
  186. 'module' => 'uc_order',
  187. );
  188. // Exported permission: view all orders.
  189. $permissions['view all orders'] = array(
  190. 'name' => 'view all orders',
  191. 'roles' => array(
  192. 0 => 'administrator',
  193. 1 => 'root',
  194. ),
  195. 'module' => 'uc_order',
  196. );
  197. // Exported permission: view cart links report.
  198. $permissions['view cart links report'] = array(
  199. 'name' => 'view cart links report',
  200. 'roles' => array(
  201. 0 => 'root',
  202. ),
  203. 'module' => 'uc_cart_links',
  204. );
  205. // Exported permission: view cc details.
  206. $permissions['view cc details'] = array(
  207. 'name' => 'view cc details',
  208. 'roles' => array(
  209. 0 => 'root',
  210. ),
  211. 'module' => 'uc_credit',
  212. );
  213. // Exported permission: view customers.
  214. $permissions['view customers'] = array(
  215. 'name' => 'view customers',
  216. 'roles' => array(
  217. 0 => 'administrator',
  218. 1 => 'root',
  219. ),
  220. 'module' => 'uc_order',
  221. );
  222. // Exported permission: view own orders.
  223. $permissions['view own orders'] = array(
  224. 'name' => 'view own orders',
  225. 'roles' => array(
  226. 0 => 'root',
  227. ),
  228. 'module' => 'uc_order',
  229. );
  230. // Exported permission: view reports.
  231. $permissions['view reports'] = array(
  232. 'name' => 'view reports',
  233. 'roles' => array(
  234. 0 => 'administrator',
  235. 1 => 'root',
  236. ),
  237. 'module' => 'uc_store',
  238. );
  239. // Exported permission: view store coupons.
  240. $permissions['view store coupons'] = array(
  241. 'name' => 'view store coupons',
  242. 'roles' => array(
  243. 0 => 'administrator',
  244. 1 => 'root',
  245. ),
  246. 'module' => 'uc_coupon',
  247. );
  248. return $permissions;
  249. }