materio_subscriptions.features.user_permission.inc 7.5 KB

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