materio_subscriptions.features.user_permission.inc 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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: 'access default UC roles expiration list'.
  12. $permissions['access default UC roles expiration list'] = array(
  13. 'name' => 'access default UC roles expiration list',
  14. 'roles' => array(
  15. 'root' => 'root',
  16. ),
  17. 'module' => 'materio_admin',
  18. );
  19. // Exported permission: 'access to online payment'.
  20. $permissions['access to online payment'] = array(
  21. 'name' => 'access to online payment',
  22. 'roles' => array(
  23. 'Utilisateur test UC' => 'Utilisateur test UC',
  24. 'root' => 'root',
  25. ),
  26. 'module' => 'materio_user',
  27. );
  28. // Exported permission: 'administer attributes'.
  29. $permissions['administer attributes'] = array(
  30. 'name' => 'administer attributes',
  31. 'roles' => array(
  32. 'root' => 'root',
  33. ),
  34. 'module' => 'uc_attribute',
  35. );
  36. // Exported permission: 'administer cart links'.
  37. $permissions['administer cart links'] = array(
  38. 'name' => 'administer cart links',
  39. 'roles' => array(
  40. 'root' => 'root',
  41. ),
  42. 'module' => 'uc_cart_links',
  43. );
  44. // Exported permission: 'administer credit cards'.
  45. $permissions['administer credit cards'] = array(
  46. 'name' => 'administer credit cards',
  47. 'roles' => array(
  48. 'root' => 'root',
  49. ),
  50. 'module' => 'uc_credit',
  51. );
  52. // Exported permission: 'administer order workflow'.
  53. $permissions['administer order workflow'] = array(
  54. 'name' => 'administer order workflow',
  55. 'roles' => array(
  56. 'root' => 'root',
  57. ),
  58. 'module' => 'uc_order',
  59. );
  60. // Exported permission: 'administer own product features'.
  61. $permissions['administer own product features'] = array(
  62. 'name' => 'administer own product features',
  63. 'roles' => array(
  64. 'root' => 'root',
  65. ),
  66. 'module' => 'uc_product',
  67. );
  68. // Exported permission: 'administer product attributes'.
  69. $permissions['administer product attributes'] = array(
  70. 'name' => 'administer product attributes',
  71. 'roles' => array(
  72. 'root' => 'root',
  73. ),
  74. 'module' => 'uc_attribute',
  75. );
  76. // Exported permission: 'administer product classes'.
  77. $permissions['administer product classes'] = array(
  78. 'name' => 'administer product classes',
  79. 'roles' => array(
  80. 'root' => 'root',
  81. ),
  82. 'module' => 'uc_product',
  83. );
  84. // Exported permission: 'administer product features'.
  85. $permissions['administer product features'] = array(
  86. 'name' => 'administer product features',
  87. 'roles' => array(
  88. 'root' => 'root',
  89. ),
  90. 'module' => 'uc_product',
  91. );
  92. // Exported permission: 'administer product options'.
  93. $permissions['administer product options'] = array(
  94. 'name' => 'administer product options',
  95. 'roles' => array(
  96. 'root' => 'root',
  97. ),
  98. 'module' => 'uc_attribute',
  99. );
  100. // Exported permission: 'administer products'.
  101. $permissions['administer products'] = array(
  102. 'name' => 'administer products',
  103. 'roles' => array(
  104. 'root' => 'root',
  105. ),
  106. 'module' => 'uc_product',
  107. );
  108. // Exported permission: 'administer store'.
  109. $permissions['administer store'] = array(
  110. 'name' => 'administer store',
  111. 'roles' => array(
  112. 'root' => 'root',
  113. ),
  114. 'module' => 'uc_store',
  115. );
  116. // Exported permission: 'configure taxes'.
  117. $permissions['configure taxes'] = array(
  118. 'name' => 'configure taxes',
  119. 'roles' => array(
  120. 'root' => 'root',
  121. ),
  122. 'module' => 'uc_taxes',
  123. );
  124. // Exported permission: 'create orders'.
  125. $permissions['create orders'] = array(
  126. 'name' => 'create orders',
  127. 'roles' => array(
  128. 'root' => 'root',
  129. ),
  130. 'module' => 'uc_order',
  131. );
  132. // Exported permission: 'create product content'.
  133. $permissions['create product content'] = array(
  134. 'name' => 'create product content',
  135. 'roles' => array(
  136. 'root' => 'root',
  137. ),
  138. 'module' => 'node',
  139. );
  140. // Exported permission: 'delete any product content'.
  141. $permissions['delete any product content'] = array(
  142. 'name' => 'delete any product content',
  143. 'roles' => array(
  144. 'root' => 'root',
  145. ),
  146. 'module' => 'node',
  147. );
  148. // Exported permission: 'delete orders'.
  149. $permissions['delete orders'] = array(
  150. 'name' => 'delete orders',
  151. 'roles' => array(
  152. 'root' => 'root',
  153. ),
  154. 'module' => 'uc_order',
  155. );
  156. // Exported permission: 'delete own product content'.
  157. $permissions['delete own product content'] = array(
  158. 'name' => 'delete own product content',
  159. 'roles' => array(
  160. 'root' => 'root',
  161. ),
  162. 'module' => 'node',
  163. );
  164. // Exported permission: 'delete payments'.
  165. $permissions['delete payments'] = array(
  166. 'name' => 'delete payments',
  167. 'roles' => array(),
  168. 'module' => 'uc_payment',
  169. );
  170. // Exported permission: 'edit any product content'.
  171. $permissions['edit any product content'] = array(
  172. 'name' => 'edit any product content',
  173. 'roles' => array(
  174. 'root' => 'root',
  175. ),
  176. 'module' => 'node',
  177. );
  178. // Exported permission: 'edit orders'.
  179. $permissions['edit orders'] = array(
  180. 'name' => 'edit orders',
  181. 'roles' => array(
  182. 'root' => 'root',
  183. ),
  184. 'module' => 'uc_order',
  185. );
  186. // Exported permission: 'edit own product content'.
  187. $permissions['edit own product content'] = array(
  188. 'name' => 'edit own product content',
  189. 'roles' => array(
  190. 'root' => 'root',
  191. ),
  192. 'module' => 'node',
  193. );
  194. // Exported permission: 'manual payments'.
  195. $permissions['manual payments'] = array(
  196. 'name' => 'manual payments',
  197. 'roles' => array(),
  198. 'module' => 'uc_payment',
  199. );
  200. // Exported permission: 'process credit cards'.
  201. $permissions['process credit cards'] = array(
  202. 'name' => 'process credit cards',
  203. 'roles' => array(
  204. 'root' => 'root',
  205. ),
  206. 'module' => 'uc_credit',
  207. );
  208. // Exported permission: 'unconditionally delete orders'.
  209. $permissions['unconditionally delete orders'] = array(
  210. 'name' => 'unconditionally delete orders',
  211. 'roles' => array(
  212. 'root' => 'root',
  213. ),
  214. 'module' => 'uc_order',
  215. );
  216. // Exported permission: 'view all orders'.
  217. $permissions['view all orders'] = array(
  218. 'name' => 'view all orders',
  219. 'roles' => array(
  220. 'administrator' => 'administrator',
  221. 'root' => 'root',
  222. ),
  223. 'module' => 'uc_order',
  224. );
  225. // Exported permission: 'view cart links report'.
  226. $permissions['view cart links report'] = array(
  227. 'name' => 'view cart links report',
  228. 'roles' => array(
  229. 'root' => 'root',
  230. ),
  231. 'module' => 'uc_cart_links',
  232. );
  233. // Exported permission: 'view cc details'.
  234. $permissions['view cc details'] = array(
  235. 'name' => 'view cc details',
  236. 'roles' => array(
  237. 'root' => 'root',
  238. ),
  239. 'module' => 'uc_credit',
  240. );
  241. // Exported permission: 'view customers'.
  242. $permissions['view customers'] = array(
  243. 'name' => 'view customers',
  244. 'roles' => array(
  245. 'administrator' => 'administrator',
  246. 'root' => 'root',
  247. ),
  248. 'module' => 'uc_order',
  249. );
  250. // Exported permission: 'view own invoices'.
  251. $permissions['view own invoices'] = array(
  252. 'name' => 'view own invoices',
  253. 'roles' => array(),
  254. 'module' => 'uc_order',
  255. );
  256. // Exported permission: 'view own orders'.
  257. $permissions['view own orders'] = array(
  258. 'name' => 'view own orders',
  259. 'roles' => array(
  260. 'root' => 'root',
  261. ),
  262. 'module' => 'uc_order',
  263. );
  264. // Exported permission: 'view payments'.
  265. $permissions['view payments'] = array(
  266. 'name' => 'view payments',
  267. 'roles' => array(),
  268. 'module' => 'uc_payment',
  269. );
  270. // Exported permission: 'view reports'.
  271. $permissions['view reports'] = array(
  272. 'name' => 'view reports',
  273. 'roles' => array(
  274. 'administrator' => 'administrator',
  275. 'root' => 'root',
  276. ),
  277. 'module' => 'uc_store',
  278. );
  279. return $permissions;
  280. }