materio_subscriptions.features.user_permission.inc 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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: 'manage store coupons'.
  195. $permissions['manage store coupons'] = array(
  196. 'name' => 'manage store coupons',
  197. 'roles' => array(
  198. 'administrator' => 'administrator',
  199. 'root' => 'root',
  200. ),
  201. 'module' => 'uc_coupon',
  202. );
  203. // Exported permission: 'manual payments'.
  204. $permissions['manual payments'] = array(
  205. 'name' => 'manual payments',
  206. 'roles' => array(),
  207. 'module' => 'uc_payment',
  208. );
  209. // Exported permission: 'process credit cards'.
  210. $permissions['process credit cards'] = array(
  211. 'name' => 'process credit cards',
  212. 'roles' => array(
  213. 'root' => 'root',
  214. ),
  215. 'module' => 'uc_credit',
  216. );
  217. // Exported permission: 'unconditionally delete orders'.
  218. $permissions['unconditionally delete orders'] = array(
  219. 'name' => 'unconditionally delete orders',
  220. 'roles' => array(
  221. 'root' => 'root',
  222. ),
  223. 'module' => 'uc_order',
  224. );
  225. // Exported permission: 'view all orders'.
  226. $permissions['view all orders'] = array(
  227. 'name' => 'view all orders',
  228. 'roles' => array(
  229. 'administrator' => 'administrator',
  230. 'root' => 'root',
  231. ),
  232. 'module' => 'uc_order',
  233. );
  234. // Exported permission: 'view cart links report'.
  235. $permissions['view cart links report'] = array(
  236. 'name' => 'view cart links report',
  237. 'roles' => array(
  238. 'root' => 'root',
  239. ),
  240. 'module' => 'uc_cart_links',
  241. );
  242. // Exported permission: 'view cc details'.
  243. $permissions['view cc details'] = array(
  244. 'name' => 'view cc details',
  245. 'roles' => array(
  246. 'root' => 'root',
  247. ),
  248. 'module' => 'uc_credit',
  249. );
  250. // Exported permission: 'view customers'.
  251. $permissions['view customers'] = array(
  252. 'name' => 'view customers',
  253. 'roles' => array(
  254. 'administrator' => 'administrator',
  255. 'root' => 'root',
  256. ),
  257. 'module' => 'uc_order',
  258. );
  259. // Exported permission: 'view own invoices'.
  260. $permissions['view own invoices'] = array(
  261. 'name' => 'view own invoices',
  262. 'roles' => array(),
  263. 'module' => 'uc_order',
  264. );
  265. // Exported permission: 'view own orders'.
  266. $permissions['view own orders'] = array(
  267. 'name' => 'view own orders',
  268. 'roles' => array(
  269. 'root' => 'root',
  270. ),
  271. 'module' => 'uc_order',
  272. );
  273. // Exported permission: 'view payments'.
  274. $permissions['view payments'] = array(
  275. 'name' => 'view payments',
  276. 'roles' => array(),
  277. 'module' => 'uc_payment',
  278. );
  279. // Exported permission: 'view reports'.
  280. $permissions['view reports'] = array(
  281. 'name' => 'view reports',
  282. 'roles' => array(
  283. 'administrator' => 'administrator',
  284. 'root' => 'root',
  285. ),
  286. 'module' => 'uc_store',
  287. );
  288. // Exported permission: 'view store coupons'.
  289. $permissions['view store coupons'] = array(
  290. 'name' => 'view store coupons',
  291. 'roles' => array(
  292. 'administrator' => 'administrator',
  293. 'root' => 'root',
  294. ),
  295. 'module' => 'uc_coupon',
  296. );
  297. return $permissions;
  298. }