materio_subscriptions.features.user_permission.inc 8.3 KB

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