materio_administration.features.user_permission.inc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. <?php
  2. /**
  3. * @file
  4. * materio_administration.features.user_permission.inc
  5. */
  6. /**
  7. * Implements hook_user_default_permissions().
  8. */
  9. function materio_administration_user_default_permissions() {
  10. $permissions = array();
  11. // Exported permission: 'access admin theme'.
  12. $permissions['access admin theme'] = array(
  13. 'name' => 'access admin theme',
  14. 'roles' => array(
  15. 'Translator CN' => 'Translator CN',
  16. 'Translator EN' => 'Translator EN',
  17. 'Translator FR' => 'Translator FR',
  18. 'administrator' => 'administrator',
  19. 'root' => 'root',
  20. ),
  21. 'module' => 'admin_theme',
  22. );
  23. // Exported permission: 'access administration menu'.
  24. $permissions['access administration menu'] = array(
  25. 'name' => 'access administration menu',
  26. 'roles' => array(
  27. 'Translator CN' => 'Translator CN',
  28. 'Translator EN' => 'Translator EN',
  29. 'Translator FR' => 'Translator FR',
  30. 'administrator' => 'administrator',
  31. 'root' => 'root',
  32. ),
  33. 'module' => 'admin_menu',
  34. );
  35. // Exported permission: 'access workflow summary views'.
  36. $permissions['access workflow summary views'] = array(
  37. 'name' => 'access workflow summary views',
  38. 'roles' => array(
  39. 'root' => 'root',
  40. ),
  41. 'module' => 'workflow_views',
  42. );
  43. // Exported permission: 'access_translation_table_content_type'.
  44. $permissions['access_translation_table_content_type'] = array(
  45. 'name' => 'access_translation_table_content_type',
  46. 'roles' => array(
  47. 'administrator' => 'administrator',
  48. 'root' => 'root',
  49. ),
  50. 'module' => 'translate_perms',
  51. );
  52. // Exported permission: 'access_translation_table_fields'.
  53. $permissions['access_translation_table_fields'] = array(
  54. 'name' => 'access_translation_table_fields',
  55. 'roles' => array(
  56. 'administrator' => 'administrator',
  57. 'root' => 'root',
  58. ),
  59. 'module' => 'translate_perms',
  60. );
  61. // Exported permission: 'access_translation_table_menu'.
  62. $permissions['access_translation_table_menu'] = array(
  63. 'name' => 'access_translation_table_menu',
  64. 'roles' => array(
  65. 'administrator' => 'administrator',
  66. 'root' => 'root',
  67. ),
  68. 'module' => 'translate_perms',
  69. );
  70. // Exported permission: 'access_translation_table_taxonomy'.
  71. $permissions['access_translation_table_taxonomy'] = array(
  72. 'name' => 'access_translation_table_taxonomy',
  73. 'roles' => array(
  74. 'root' => 'root',
  75. ),
  76. 'module' => 'translate_perms',
  77. );
  78. // Exported permission: 'access_translations_overview'.
  79. $permissions['access_translations_overview'] = array(
  80. 'name' => 'access_translations_overview',
  81. 'roles' => array(
  82. 'root' => 'root',
  83. ),
  84. 'module' => 'translate_perms',
  85. );
  86. // Exported permission: 'administer entity translation'.
  87. $permissions['administer entity translation'] = array(
  88. 'name' => 'administer entity translation',
  89. 'roles' => array(
  90. 'root' => 'root',
  91. ),
  92. 'module' => 'entity_translation',
  93. );
  94. // Exported permission: 'administer remove_duplicates'.
  95. $permissions['administer remove_duplicates'] = array(
  96. 'name' => 'administer remove_duplicates',
  97. 'roles' => array(
  98. 'administrator' => 'administrator',
  99. 'root' => 'root',
  100. ),
  101. 'module' => 'remove_duplicates',
  102. );
  103. // Exported permission: 'administer workflow'.
  104. $permissions['administer workflow'] = array(
  105. 'name' => 'administer workflow',
  106. 'roles' => array(
  107. 'root' => 'root',
  108. ),
  109. 'module' => 'workflow_admin_ui',
  110. );
  111. // Exported permission: 'assign Adhérent role'.
  112. $permissions['assign Adhérent role'] = array(
  113. 'name' => 'assign Adhérent role',
  114. 'roles' => array(
  115. 'administrator' => 'administrator',
  116. 'root' => 'root',
  117. ),
  118. 'module' => 'role_delegation',
  119. );
  120. // Exported permission: 'assign Contact opérationnel role'.
  121. $permissions['assign Contact opérationnel role'] = array(
  122. 'name' => 'assign Contact opérationnel role',
  123. 'roles' => array(
  124. 'administrator' => 'administrator',
  125. 'root' => 'root',
  126. ),
  127. 'module' => 'role_delegation',
  128. );
  129. // Exported permission: 'assign Premium role'.
  130. $permissions['assign Premium role'] = array(
  131. 'name' => 'assign Premium role',
  132. 'roles' => array(
  133. 'administrator' => 'administrator',
  134. 'root' => 'root',
  135. ),
  136. 'module' => 'role_delegation',
  137. );
  138. // Exported permission: 'assign Student role'.
  139. $permissions['assign Student role'] = array(
  140. 'name' => 'assign Student role',
  141. 'roles' => array(
  142. 'administrator' => 'administrator',
  143. 'root' => 'root',
  144. ),
  145. 'module' => 'role_delegation',
  146. );
  147. // Exported permission: 'assign Unverified role'.
  148. $permissions['assign Unverified role'] = array(
  149. 'name' => 'assign Unverified role',
  150. 'roles' => array(
  151. 'administrator' => 'administrator',
  152. 'root' => 'root',
  153. ),
  154. 'module' => 'role_delegation',
  155. );
  156. // Exported permission: 'assign Utilisateur Alpha Tester role'.
  157. $permissions['assign Utilisateur Alpha Tester role'] = array(
  158. 'name' => 'assign Utilisateur Alpha Tester role',
  159. 'roles' => array(
  160. 'administrator' => 'administrator',
  161. 'root' => 'root',
  162. ),
  163. 'module' => 'role_delegation',
  164. );
  165. // Exported permission: 'assign Utilisateur role'.
  166. $permissions['assign Utilisateur role'] = array(
  167. 'name' => 'assign Utilisateur role',
  168. 'roles' => array(
  169. 'administrator' => 'administrator',
  170. 'root' => 'root',
  171. ),
  172. 'module' => 'role_delegation',
  173. );
  174. // Exported permission: 'assign administrator role'.
  175. $permissions['assign administrator role'] = array(
  176. 'name' => 'assign administrator role',
  177. 'roles' => array(
  178. 'administrator' => 'administrator',
  179. 'root' => 'root',
  180. ),
  181. 'module' => 'role_delegation',
  182. );
  183. // Exported permission: 'assign all roles'.
  184. $permissions['assign all roles'] = array(
  185. 'name' => 'assign all roles',
  186. 'roles' => array(
  187. 'root' => 'root',
  188. ),
  189. 'module' => 'role_delegation',
  190. );
  191. // Exported permission: 'display drupal links'.
  192. $permissions['display drupal links'] = array(
  193. 'name' => 'display drupal links',
  194. 'roles' => array(
  195. 'root' => 'root',
  196. ),
  197. 'module' => 'admin_menu',
  198. );
  199. // Exported permission: 'edit node original values'.
  200. $permissions['edit node original values'] = array(
  201. 'name' => 'edit node original values',
  202. 'roles' => array(
  203. 'administrator' => 'administrator',
  204. 'root' => 'root',
  205. ),
  206. 'module' => 'entity_translation',
  207. );
  208. // Exported permission: 'edit node translation shared fields'.
  209. $permissions['edit node translation shared fields'] = array(
  210. 'name' => 'edit node translation shared fields',
  211. 'roles' => array(
  212. 'administrator' => 'administrator',
  213. 'root' => 'root',
  214. ),
  215. 'module' => 'entity_translation',
  216. );
  217. // Exported permission: 'edit original values'.
  218. $permissions['edit original values'] = array(
  219. 'name' => 'edit original values',
  220. 'roles' => array(
  221. 'administrator' => 'administrator',
  222. 'root' => 'root',
  223. ),
  224. 'module' => 'entity_translation',
  225. );
  226. // Exported permission: 'edit taxonomy_term original values'.
  227. $permissions['edit taxonomy_term original values'] = array(
  228. 'name' => 'edit taxonomy_term original values',
  229. 'roles' => array(
  230. 'administrator' => 'administrator',
  231. 'root' => 'root',
  232. ),
  233. 'module' => 'entity_translation',
  234. );
  235. // Exported permission: 'edit taxonomy_term translation shared fields'.
  236. $permissions['edit taxonomy_term translation shared fields'] = array(
  237. 'name' => 'edit taxonomy_term translation shared fields',
  238. 'roles' => array(
  239. 'administrator' => 'administrator',
  240. 'root' => 'root',
  241. ),
  242. 'module' => 'entity_translation',
  243. );
  244. // Exported permission: 'edit translation shared fields'.
  245. $permissions['edit translation shared fields'] = array(
  246. 'name' => 'edit translation shared fields',
  247. 'roles' => array(
  248. 'administrator' => 'administrator',
  249. 'root' => 'root',
  250. ),
  251. 'module' => 'entity_translation',
  252. );
  253. // Exported permission: 'export_translations'.
  254. $permissions['export_translations'] = array(
  255. 'name' => 'export_translations',
  256. 'roles' => array(
  257. 'root' => 'root',
  258. ),
  259. 'module' => 'translate_perms',
  260. );
  261. // Exported permission: 'flush caches'.
  262. $permissions['flush caches'] = array(
  263. 'name' => 'flush caches',
  264. 'roles' => array(
  265. 'root' => 'root',
  266. ),
  267. 'module' => 'admin_menu',
  268. );
  269. // Exported permission: 'import_translations'.
  270. $permissions['import_translations'] = array(
  271. 'name' => 'import_translations',
  272. 'roles' => array(
  273. 'root' => 'root',
  274. ),
  275. 'module' => 'translate_perms',
  276. );
  277. // Exported permission: 'participate in workflow'.
  278. $permissions['participate in workflow'] = array(
  279. 'name' => 'participate in workflow',
  280. 'roles' => array(
  281. 'Adhérent' => 'Adhérent',
  282. 'Contact opérationnel' => 'Contact opérationnel',
  283. 'Premium' => 'Premium',
  284. 'Student' => 'Student',
  285. 'Translator CN' => 'Translator CN',
  286. 'Translator EN' => 'Translator EN',
  287. 'Translator FR' => 'Translator FR',
  288. 'Unverified' => 'Unverified',
  289. 'Utilisateur' => 'Utilisateur',
  290. 'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
  291. 'administrator' => 'administrator',
  292. 'anonymous user' => 'anonymous user',
  293. 'authenticated user' => 'authenticated user',
  294. 'root' => 'root',
  295. ),
  296. 'module' => 'workflow_admin_ui',
  297. );
  298. // Exported permission: 'refresh_strings'.
  299. $permissions['refresh_strings'] = array(
  300. 'name' => 'refresh_strings',
  301. 'roles' => array(
  302. 'root' => 'root',
  303. ),
  304. 'module' => 'translate_perms',
  305. );
  306. // Exported permission: 'schedule workflow transitions'.
  307. $permissions['schedule workflow transitions'] = array(
  308. 'name' => 'schedule workflow transitions',
  309. 'roles' => array(
  310. 'root' => 'root',
  311. ),
  312. 'module' => 'workflow',
  313. );
  314. // Exported permission: 'select different theme'.
  315. $permissions['select different theme'] = array(
  316. 'name' => 'select different theme',
  317. 'roles' => array(
  318. 'root' => 'root',
  319. ),
  320. 'module' => 'admin',
  321. );
  322. // Exported permission: 'send newsletter'.
  323. $permissions['send newsletter'] = array(
  324. 'name' => 'send newsletter',
  325. 'roles' => array(
  326. 'administrator' => 'administrator',
  327. 'root' => 'root',
  328. ),
  329. 'module' => 'simplenews',
  330. );
  331. // Exported permission: 'show workflow state form'.
  332. $permissions['show workflow state form'] = array(
  333. 'name' => 'show workflow state form',
  334. 'roles' => array(
  335. 'root' => 'root',
  336. ),
  337. 'module' => 'workflow',
  338. );
  339. // Exported permission: 'subscribe to newsletters'.
  340. $permissions['subscribe to newsletters'] = array(
  341. 'name' => 'subscribe to newsletters',
  342. 'roles' => array(
  343. 'Adhérent' => 'Adhérent',
  344. 'Contact opérationnel' => 'Contact opérationnel',
  345. 'Premium' => 'Premium',
  346. 'Student' => 'Student',
  347. 'Utilisateur' => 'Utilisateur',
  348. 'administrator' => 'administrator',
  349. 'anonymous user' => 'anonymous user',
  350. 'root' => 'root',
  351. ),
  352. 'module' => 'simplenews',
  353. );
  354. // Exported permission: 'subscribe to simplenews category 6274'.
  355. $permissions['subscribe to simplenews category 6274'] = array(
  356. 'name' => 'subscribe to simplenews category 6274',
  357. 'roles' => array(
  358. 'anonymous user' => 'anonymous user',
  359. 'authenticated user' => 'authenticated user',
  360. ),
  361. 'module' => 'materio_user',
  362. );
  363. // Exported permission: 'subscribe to simplenews category 6374'.
  364. $permissions['subscribe to simplenews category 6374'] = array(
  365. 'name' => 'subscribe to simplenews category 6374',
  366. 'roles' => array(
  367. 'Adhérent' => 'Adhérent',
  368. 'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
  369. 'administrator' => 'administrator',
  370. 'root' => 'root',
  371. ),
  372. 'module' => 'materio_user',
  373. );
  374. // Exported permission: 'subscribe to simplenews category 6585'.
  375. $permissions['subscribe to simplenews category 6585'] = array(
  376. 'name' => 'subscribe to simplenews category 6585',
  377. 'roles' => array(
  378. 'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
  379. 'administrator' => 'administrator',
  380. 'root' => 'root',
  381. ),
  382. 'module' => 'materio_user',
  383. );
  384. // Exported permission: 'toggle field translatability'.
  385. $permissions['toggle field translatability'] = array(
  386. 'name' => 'toggle field translatability',
  387. 'roles' => array(
  388. 'root' => 'root',
  389. ),
  390. 'module' => 'entity_translation',
  391. );
  392. // Exported permission: 'translate admin strings'.
  393. $permissions['translate admin strings'] = array(
  394. 'name' => 'translate admin strings',
  395. 'roles' => array(
  396. 'administrator' => 'administrator',
  397. 'root' => 'root',
  398. ),
  399. 'module' => 'i18n_string',
  400. );
  401. // Exported permission: 'translate any entity'.
  402. $permissions['translate any entity'] = array(
  403. 'name' => 'translate any entity',
  404. 'roles' => array(
  405. 'Translator CN' => 'Translator CN',
  406. 'Translator EN' => 'Translator EN',
  407. 'Translator FR' => 'Translator FR',
  408. 'administrator' => 'administrator',
  409. 'root' => 'root',
  410. ),
  411. 'module' => 'entity_translation',
  412. );
  413. // Exported permission: 'translate content'.
  414. $permissions['translate content'] = array(
  415. 'name' => 'translate content',
  416. 'roles' => array(
  417. 'Translator CN' => 'Translator CN',
  418. 'Translator EN' => 'Translator EN',
  419. 'Translator FR' => 'Translator FR',
  420. 'administrator' => 'administrator',
  421. 'root' => 'root',
  422. ),
  423. 'module' => 'translation',
  424. );
  425. // Exported permission: 'translate node entities'.
  426. $permissions['translate node entities'] = array(
  427. 'name' => 'translate node entities',
  428. 'roles' => array(
  429. 'Translator CN' => 'Translator CN',
  430. 'Translator EN' => 'Translator EN',
  431. 'Translator FR' => 'Translator FR',
  432. 'administrator' => 'administrator',
  433. 'root' => 'root',
  434. ),
  435. 'module' => 'entity_translation',
  436. );
  437. // Exported permission: 'translate taxonomy_term entities'.
  438. $permissions['translate taxonomy_term entities'] = array(
  439. 'name' => 'translate taxonomy_term entities',
  440. 'roles' => array(
  441. 'Translator CN' => 'Translator CN',
  442. 'Translator EN' => 'Translator EN',
  443. 'Translator FR' => 'Translator FR',
  444. 'administrator' => 'administrator',
  445. 'root' => 'root',
  446. ),
  447. 'module' => 'entity_translation',
  448. );
  449. // Exported permission: 'translate user-defined strings'.
  450. $permissions['translate user-defined strings'] = array(
  451. 'name' => 'translate user-defined strings',
  452. 'roles' => array(
  453. 'administrator' => 'administrator',
  454. 'root' => 'root',
  455. ),
  456. 'module' => 'i18n_string',
  457. );
  458. // Exported permission: 'translate_strings'.
  459. $permissions['translate_strings'] = array(
  460. 'name' => 'translate_strings',
  461. 'roles' => array(
  462. 'administrator' => 'administrator',
  463. 'root' => 'root',
  464. ),
  465. 'module' => 'translate_perms',
  466. );
  467. // Exported permission: 'update_modules_translations'.
  468. $permissions['update_modules_translations'] = array(
  469. 'name' => 'update_modules_translations',
  470. 'roles' => array(
  471. 'root' => 'root',
  472. ),
  473. 'module' => 'translate_perms',
  474. );
  475. return $permissions;
  476. }