materio_subscriptions.features.user_permission.inc 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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 credit cards'.
  54. $permissions['administer credit cards'] = array(
  55. 'name' => 'administer credit cards',
  56. 'roles' => array(
  57. 'root' => 'root',
  58. ),
  59. 'module' => 'uc_credit',
  60. );
  61. // Exported permission: 'administer order workflow'.
  62. $permissions['administer order workflow'] = array(
  63. 'name' => 'administer order workflow',
  64. 'roles' => array(
  65. 'root' => 'root',
  66. ),
  67. 'module' => 'uc_order',
  68. );
  69. // Exported permission: 'administer own product features'.
  70. $permissions['administer own product features'] = array(
  71. 'name' => 'administer own product features',
  72. 'roles' => array(
  73. 'root' => 'root',
  74. ),
  75. 'module' => 'uc_product',
  76. );
  77. // Exported permission: 'administer product attributes'.
  78. $permissions['administer product attributes'] = array(
  79. 'name' => 'administer product attributes',
  80. 'roles' => array(
  81. 'root' => 'root',
  82. ),
  83. 'module' => 'uc_attribute',
  84. );
  85. // Exported permission: 'administer product classes'.
  86. $permissions['administer product classes'] = array(
  87. 'name' => 'administer product classes',
  88. 'roles' => array(
  89. 'root' => 'root',
  90. ),
  91. 'module' => 'uc_product',
  92. );
  93. // Exported permission: 'administer product features'.
  94. $permissions['administer product features'] = array(
  95. 'name' => 'administer product features',
  96. 'roles' => array(
  97. 'root' => 'root',
  98. ),
  99. 'module' => 'uc_product',
  100. );
  101. // Exported permission: 'administer product options'.
  102. $permissions['administer product options'] = array(
  103. 'name' => 'administer product options',
  104. 'roles' => array(
  105. 'root' => 'root',
  106. ),
  107. 'module' => 'uc_attribute',
  108. );
  109. // Exported permission: 'administer products'.
  110. $permissions['administer products'] = array(
  111. 'name' => 'administer products',
  112. 'roles' => array(
  113. 'root' => 'root',
  114. ),
  115. 'module' => 'uc_product',
  116. );
  117. // Exported permission: 'administer store'.
  118. $permissions['administer store'] = array(
  119. 'name' => 'administer store',
  120. 'roles' => array(
  121. 'root' => 'root',
  122. ),
  123. 'module' => 'uc_store',
  124. );
  125. // Exported permission: 'configure taxes'.
  126. $permissions['configure taxes'] = array(
  127. 'name' => 'configure taxes',
  128. 'roles' => array(
  129. 'root' => 'root',
  130. ),
  131. 'module' => 'uc_taxes',
  132. );
  133. // Exported permission: 'create orders'.
  134. $permissions['create orders'] = array(
  135. 'name' => 'create orders',
  136. 'roles' => array(
  137. 'root' => 'root',
  138. ),
  139. 'module' => 'uc_order',
  140. );
  141. // Exported permission: 'create product content'.
  142. $permissions['create product content'] = array(
  143. 'name' => 'create product content',
  144. 'roles' => array(
  145. 'root' => 'root',
  146. ),
  147. 'module' => 'node',
  148. );
  149. // Exported permission: 'delete any product content'.
  150. $permissions['delete any product content'] = array(
  151. 'name' => 'delete any product content',
  152. 'roles' => array(
  153. 'root' => 'root',
  154. ),
  155. 'module' => 'node',
  156. );
  157. // Exported permission: 'delete orders'.
  158. $permissions['delete orders'] = array(
  159. 'name' => 'delete orders',
  160. 'roles' => array(
  161. 'root' => 'root',
  162. ),
  163. 'module' => 'uc_order',
  164. );
  165. // Exported permission: 'delete own product content'.
  166. $permissions['delete own product content'] = array(
  167. 'name' => 'delete own product content',
  168. 'roles' => array(
  169. 'root' => 'root',
  170. ),
  171. 'module' => 'node',
  172. );
  173. // Exported permission: 'delete payments'.
  174. $permissions['delete payments'] = array(
  175. 'name' => 'delete payments',
  176. 'roles' => array(),
  177. 'module' => 'uc_payment',
  178. );
  179. // Exported permission: 'edit any product content'.
  180. $permissions['edit any product content'] = array(
  181. 'name' => 'edit any product content',
  182. 'roles' => array(
  183. 'root' => 'root',
  184. ),
  185. 'module' => 'node',
  186. );
  187. // Exported permission: 'edit orders'.
  188. $permissions['edit orders'] = array(
  189. 'name' => 'edit orders',
  190. 'roles' => array(
  191. 'root' => 'root',
  192. ),
  193. 'module' => 'uc_order',
  194. );
  195. // Exported permission: 'edit own product content'.
  196. $permissions['edit own product content'] = array(
  197. 'name' => 'edit own product content',
  198. 'roles' => array(
  199. 'root' => 'root',
  200. ),
  201. 'module' => 'node',
  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. return $permissions;
  289. }