materio_subscriptions.features.user_permission.inc 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. 'root' => 'root',
  170. ),
  171. 'module' => 'uc_payment',
  172. );
  173. // Exported permission: 'edit any product content'.
  174. $permissions['edit any product content'] = array(
  175. 'name' => 'edit any product content',
  176. 'roles' => array(
  177. 'root' => 'root',
  178. ),
  179. 'module' => 'node',
  180. );
  181. // Exported permission: 'edit orders'.
  182. $permissions['edit orders'] = array(
  183. 'name' => 'edit orders',
  184. 'roles' => array(
  185. 'root' => 'root',
  186. ),
  187. 'module' => 'uc_order',
  188. );
  189. // Exported permission: 'edit own product content'.
  190. $permissions['edit own product content'] = array(
  191. 'name' => 'edit own product content',
  192. 'roles' => array(
  193. 'root' => 'root',
  194. ),
  195. 'module' => 'node',
  196. );
  197. // Exported permission: 'manual payments'.
  198. $permissions['manual payments'] = array(
  199. 'name' => 'manual payments',
  200. 'roles' => array(
  201. 'root' => 'root',
  202. ),
  203. 'module' => 'uc_payment',
  204. );
  205. // Exported permission: 'unconditionally delete orders'.
  206. $permissions['unconditionally delete orders'] = array(
  207. 'name' => 'unconditionally delete orders',
  208. 'roles' => array(
  209. 'root' => 'root',
  210. ),
  211. 'module' => 'uc_order',
  212. );
  213. // Exported permission: 'view all orders'.
  214. $permissions['view all orders'] = array(
  215. 'name' => 'view all orders',
  216. 'roles' => array(
  217. 'administrator' => 'administrator',
  218. 'root' => 'root',
  219. ),
  220. 'module' => 'uc_order',
  221. );
  222. // Exported permission: 'view cart links report'.
  223. $permissions['view cart links report'] = array(
  224. 'name' => 'view cart links report',
  225. 'roles' => array(
  226. 'root' => 'root',
  227. ),
  228. 'module' => 'uc_cart_links',
  229. );
  230. // Exported permission: 'view customers'.
  231. $permissions['view customers'] = array(
  232. 'name' => 'view customers',
  233. 'roles' => array(
  234. 'administrator' => 'administrator',
  235. 'root' => 'root',
  236. ),
  237. 'module' => 'uc_order',
  238. );
  239. // Exported permission: 'view own invoices'.
  240. $permissions['view own invoices'] = array(
  241. 'name' => 'view own invoices',
  242. 'roles' => array(),
  243. 'module' => 'uc_order',
  244. );
  245. // Exported permission: 'view own orders'.
  246. $permissions['view own orders'] = array(
  247. 'name' => 'view own orders',
  248. 'roles' => array(
  249. 'root' => 'root',
  250. ),
  251. 'module' => 'uc_order',
  252. );
  253. // Exported permission: 'view payments'.
  254. $permissions['view payments'] = array(
  255. 'name' => 'view payments',
  256. 'roles' => array(
  257. 'administrator' => 'administrator',
  258. 'root' => 'root',
  259. ),
  260. 'module' => 'uc_payment',
  261. );
  262. // Exported permission: 'view reports'.
  263. $permissions['view reports'] = array(
  264. 'name' => 'view reports',
  265. 'roles' => array(
  266. 'administrator' => 'administrator',
  267. 'root' => 'root',
  268. ),
  269. 'module' => 'uc_store',
  270. );
  271. return $permissions;
  272. }