permission.inc.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. $we7_file_permission = array();
  8. $we7_file_permission = array(
  9. 'account' => array(
  10. 'default' => '',
  11. 'direct' => array(
  12. 'auth',
  13. 'welcome',
  14. ),
  15. 'vice_founder' => array('account*'),
  16. 'owner' => array('account*'),
  17. 'manager' => array(
  18. 'display',
  19. 'manage',
  20. 'post-step',
  21. 'post-user',
  22. 'post',
  23. 'create',
  24. ),
  25. 'operator' => array(
  26. 'display',
  27. 'manage',
  28. 'post-step',
  29. 'create',
  30. ),
  31. 'clerk' => array(
  32. 'display',
  33. ),
  34. 'unbind_user' => array(),
  35. ),
  36. 'advertisement' => array(
  37. 'default' => '',
  38. 'direct' => array(),
  39. 'vice_founder' => array(),
  40. 'owner' => array(),
  41. 'manager' => array(),
  42. 'operator' => array(),
  43. 'clerk' => array(),
  44. 'unbind_user' => array(),
  45. ),
  46. 'article' => array(
  47. 'default' => '',
  48. 'direct' => array(
  49. 'notice-show',
  50. 'news-show',
  51. ),
  52. 'vice_founder' => array(),
  53. 'owner' => array(),
  54. 'manager' => array(),
  55. 'operator' => array(),
  56. 'clerk' => array(),
  57. 'unbind_user' => array(),
  58. ),
  59. 'message' => array(
  60. 'default' => '',
  61. 'direct' => array(
  62. 'notice',
  63. ),
  64. 'vice_founder' => array(),
  65. 'owner' => array(),
  66. 'manager' => array(),
  67. 'operator' => array(),
  68. 'clerk' => array(),
  69. 'unbind_user' => array(),
  70. ),
  71. 'cloud' => array(
  72. 'default' => 'touch',
  73. 'direct' => array(
  74. 'touch',
  75. 'dock',
  76. ),
  77. 'vice_founder' => array(),
  78. 'owner' => array(),
  79. 'manager' => array(),
  80. 'operator' => array(),
  81. 'clerk' => array(),
  82. 'unbind_user' => array(),
  83. ),
  84. 'cron' => array(
  85. 'default' => '',
  86. 'direct' => array(
  87. 'entry',
  88. ),
  89. 'vice_founder' => array(),
  90. 'owner' => array(),
  91. 'manager' => array(),
  92. 'operator' => array(),
  93. 'clerk' => array(),
  94. 'unbind_user' => array(),
  95. ),
  96. 'founder' => array(
  97. 'default' => '',
  98. 'direct' => array(),
  99. 'vice_founder' => array(),
  100. 'owner' => array(),
  101. 'manager' => array(),
  102. 'operator' => array(),
  103. 'clerk' => array(),
  104. 'unbind_user' => array(),
  105. ),
  106. 'help' => array(
  107. 'default' => '',
  108. 'direct' => array(),
  109. 'vice_founder' => array('help*'),
  110. 'owner' => array('help*'),
  111. 'manager' => array('help*'),
  112. 'operator' => array('help*'),
  113. 'clerk' => array(),
  114. 'unbind_user' => array(),
  115. ),
  116. 'home' => array(
  117. 'default' => 'welcome',
  118. 'direct' => array(),
  119. 'vice_founder' => array('home*'),
  120. 'owner' => array('home*'),
  121. 'manager' => array('home*'),
  122. 'operator' => array('home*'),
  123. 'clerk' => array('welcome'),
  124. 'unbind_user' => array(),
  125. 'expired' => array('welcome'),
  126. ),
  127. 'mc' => array(
  128. 'default' => '',
  129. 'direct' => array(),
  130. 'vice_founder' => array('mc*'),
  131. 'owner' => array('mc*'),
  132. 'manager' => array(
  133. 'chats',
  134. 'fields',
  135. 'group',
  136. 'trade',
  137. 'fans',
  138. 'member',
  139. 'message',
  140. ),
  141. 'operator' => array(
  142. 'chats',
  143. 'fields',
  144. 'group',
  145. 'trade',
  146. ),
  147. 'clerk' => array(),
  148. 'unbind_user' => array(),
  149. ),
  150. 'module' => array(
  151. 'default' => '',
  152. 'direct' => array(),
  153. 'vice_founder' => array('module*'),
  154. 'owner' => array(
  155. 'manage-account',
  156. 'manage-system',
  157. 'permission',
  158. 'display',
  159. 'welcome',
  160. 'link',
  161. 'link-account',
  162. 'shortcut',
  163. 'plugin',
  164. ),
  165. 'manager' => array(
  166. 'manage-account',
  167. 'display',
  168. 'welcome',
  169. 'link',
  170. 'link-account',
  171. 'shortcut',
  172. 'plugin',
  173. ),
  174. 'operator' => array(
  175. 'manage-account',
  176. 'display',
  177. 'welcome',
  178. 'link',
  179. 'link-account',
  180. 'shortcut',
  181. 'plugin',
  182. ),
  183. 'clerk' => array(
  184. 'display',
  185. 'manage-account',
  186. 'welcome',
  187. 'link',
  188. 'link-account',
  189. 'shortcut',
  190. 'plugin',
  191. ),
  192. 'unbind_user' => array(),
  193. ),
  194. 'platform' => array(
  195. 'default' => '',
  196. 'direct' => array(),
  197. 'vice_founder' => array('platform*'),
  198. 'owner' => array('platform*'),
  199. 'manager' => array(
  200. 'cover',
  201. 'reply',
  202. 'menu',
  203. 'qr',
  204. 'mass',
  205. 'material',
  206. 'material-post',
  207. 'url2qr',
  208. ),
  209. 'operator' => array(
  210. 'cover',
  211. 'reply',
  212. 'material',
  213. 'material-post',
  214. 'url2qr',
  215. ),
  216. 'clerk' => array(
  217. 'reply',
  218. 'cover',
  219. 'material',
  220. 'material-post'
  221. ),
  222. 'unbind_user' => array(),
  223. ),
  224. 'profile' => array(
  225. 'default' => '',
  226. 'direct' => array(),
  227. 'vice_founder' => array('profile*'),
  228. 'owner' => array('profile*'),
  229. 'manager' => array(
  230. 'remote',
  231. 'passport',
  232. 'tplnotice',
  233. 'notify',
  234. 'common',
  235. 'payment',
  236. 'refund',
  237. 'module-link-uniacid',
  238. 'bind-domain',
  239. ),
  240. 'operator' => array(),
  241. 'clerk' => array(),
  242. 'unbind_user' => array('profile*'),
  243. ),
  244. 'site' => array(
  245. 'default' => '',
  246. 'direct' => array(
  247. 'entry',
  248. ),
  249. 'vice_founder' => array('site*'),
  250. 'owner' => array('site*'),
  251. 'manager' => array(
  252. 'editor',
  253. 'article',
  254. 'category',
  255. 'style',
  256. 'nav',
  257. 'slide',
  258. 'multi',
  259. 'comment',
  260. ),
  261. 'operator' => array(
  262. 'editor',
  263. 'article',
  264. 'category',
  265. 'style',
  266. 'nav',
  267. 'slide',
  268. ),
  269. 'clerk' => array(
  270. 'nav',
  271. ),
  272. 'unbind_user' => array(),
  273. ),
  274. 'statistics' => array(
  275. 'default' => '',
  276. 'direct' => array(),
  277. 'vice_founder' => array('statistics*'),
  278. 'owner' => array('statistics*'),
  279. 'manager' => array(
  280. 'app',
  281. 'site',
  282. 'setting',
  283. 'fans',
  284. ),
  285. 'operator' => array(),
  286. 'clerk' => array(),
  287. 'unbind_user' => array(),
  288. ),
  289. 'store' => array(
  290. 'default' => '',
  291. 'direct' => array(),
  292. 'vice_founder' => array(
  293. 'goods-buyer',
  294. 'orders',
  295. ),
  296. 'owner' => array(
  297. 'goods-buyer',
  298. 'orders',
  299. ),
  300. 'manager' => array(
  301. 'goods-buyer',
  302. 'orders',
  303. ),
  304. 'operator' => array(
  305. 'goods-buyer',
  306. 'orders',
  307. ),
  308. 'clerk' => array(),
  309. 'unbind_user' => array(),
  310. 'expired' => array(
  311. 'goods-buyer',
  312. 'orders',
  313. )
  314. ),
  315. 'system' => array(
  316. 'default' => '',
  317. 'direct' => array(),
  318. 'vice_founder' => array(
  319. 'template',
  320. 'updatecache',
  321. ),
  322. 'owner' => array(
  323. 'updatecache',
  324. ),
  325. 'manager' => array(
  326. 'updatecache',
  327. ),
  328. 'operator' => array(
  329. 'account',
  330. 'updatecache',
  331. ),
  332. 'clerk' => array(),
  333. 'unbind_user' => array(
  334. 'updatecache',
  335. ),
  336. 'expired' => array(
  337. 'updatecache',
  338. )
  339. ),
  340. 'user' => array(
  341. 'default' => 'display',
  342. 'direct' => array(
  343. 'login',
  344. 'register',
  345. 'logout',
  346. 'find-password',
  347. 'third-bind',
  348. 'agreement-show'
  349. ),
  350. 'vice_founder' => array('user*'),
  351. 'owner' => array(
  352. 'profile',
  353. ),
  354. 'manager' => array(
  355. 'profile',
  356. ),
  357. 'operator' => array(
  358. 'profile',
  359. ),
  360. 'clerk' => array(
  361. 'profile',
  362. ),
  363. 'unbind_user' => array(
  364. 'profile',
  365. ),
  366. 'expired' => array(
  367. 'user*',
  368. )
  369. ),
  370. 'miniapp' => array(
  371. 'default' => '',
  372. 'direct' => array(),
  373. 'vice_founder' => array('miniapp*'),
  374. 'owner' => array('miniapp*'),
  375. 'manager' => array(
  376. 'display',
  377. 'version',
  378. 'post',
  379. ),
  380. 'operator' => array(
  381. 'display',
  382. 'version',
  383. 'post',
  384. ),
  385. 'clerk' => array(
  386. 'display',
  387. 'version',
  388. 'post',
  389. ),
  390. 'unbind_user' => array(),
  391. ),
  392. 'wxapp' => array(
  393. 'default' => '',
  394. 'direct' => array(),
  395. 'vice_founder' => array('wxapp*'),
  396. 'owner' => array('wxapp*'),
  397. 'manager' => array(
  398. 'display',
  399. 'version',
  400. 'post',
  401. 'auth',
  402. ),
  403. 'operator' => array(
  404. 'display',
  405. 'version',
  406. 'post',
  407. 'auth',
  408. ),
  409. 'clerk' => array(
  410. 'display',
  411. ),
  412. 'unbind_user' => array(),
  413. ),
  414. 'webapp' => array(
  415. 'default' => '',
  416. 'direct' => array(),
  417. 'vice_founder' => array('webapp*'),
  418. 'owner' => array('webapp*'),
  419. 'manager' => array(
  420. 'home',
  421. 'manage',
  422. ),
  423. 'operator' => array(
  424. 'home',
  425. 'manage'
  426. ),
  427. 'clerk' => array(
  428. 'home'
  429. ),
  430. 'unbind_user' => array(),
  431. ),
  432. 'xzapp' => array(
  433. 'default' => '',
  434. 'direct' => array(),
  435. 'vice_founder' => array('xzapp*'),
  436. 'owner' => array('xzapp*'),
  437. 'manager' => array(),
  438. 'operator' => array(
  439. 'post-step',
  440. 'create',
  441. ),
  442. 'clerk' => array(),
  443. 'unbind_user' => array(),
  444. ),
  445. 'phoneapp' => array(
  446. 'default' => '',
  447. 'direct' => array(),
  448. 'vice_founder' => array('phoneapp*'),
  449. 'owner' => array('phoneapp*'),
  450. 'manager' => array(
  451. 'display',
  452. 'manage',
  453. 'version'
  454. ),
  455. 'operator' => array(
  456. 'display',
  457. 'manage',
  458. 'version'
  459. ),
  460. 'clerk' => array(
  461. 'display'
  462. ),
  463. ),
  464. 'utility' => array(
  465. 'default' => '',
  466. 'direct' => array(
  467. 'verifycode',
  468. 'code',
  469. 'file',
  470. 'bindcall',
  471. 'subscribe',
  472. 'wxcode',
  473. 'modules',
  474. 'link',
  475. 'visit'
  476. ),
  477. 'vice_founder' => array(
  478. 'user',
  479. 'emulator',
  480. ),
  481. 'owner' => array(
  482. 'emulator',
  483. ),
  484. 'manager' => array(
  485. 'emulator',
  486. ),
  487. 'operator' => array(
  488. 'emulator',
  489. ),
  490. 'unbind_user' => array(),
  491. ),
  492. 'append' => array('append*'),
  493. 'see_more_info' => array(
  494. 'founder' => array(
  495. 'see_module_manage_system_except_installed',
  496. 'see_module_manage_system_ugrade',
  497. 'see_module_manage_system_stop',
  498. 'see_module_manage_system_install',
  499. 'see_module_manage_system_shopinfo',
  500. 'see_module_manage_system_info_edit',
  501. 'see_module_manage_system_detailinfo',
  502. 'see_module_manage_system_group_add',
  503. 'see_module_manage_system_welcome_support',
  504. 'see_account_post_modules_tpl_edit_store_endtime',
  505. 'see_account_manage_module_tpl_all_permission',
  506. 'see_account_manage_sms_blance',
  507. 'see_account_manage_users_edit_vicefounder',
  508. 'see_account_manage_users_edit_owner',
  509. 'see_account_manage_users_set_permission_for_manager',
  510. 'see_account_manage_users_set_permission_for_operator',
  511. 'see_account_manage_users_addmanager',
  512. 'see_account_manage_users_delmanager',
  513. 'see_account_manage_users_deloperator',
  514. 'see_account_manage_users_adduser',
  515. 'see_account_manage_users_add_viceuser',
  516. 'see_account_manage_display',
  517. 'see_account_manage_recycle',
  518. 'see_account_manage_system_platform',
  519. 'see_account_manage_expired_message',
  520. 'see_permission_create_account_group',
  521. 'see_permission_module_group',
  522. 'see_permission_user_group',
  523. 'see_permission_founder_group',
  524. 'see_system_upgrade',
  525. 'see_system_updatecache',
  526. 'see_system_manage_clerk',
  527. 'see_system_manage_vice_founder',
  528. 'see_system_add_vice_founder',
  529. 'see_notice_post',
  530. 'see_message_official',
  531. 'see_message_order',
  532. 'see_message_register',
  533. 'see_message_worker',
  534. 'see_module_manage_system_newversion',
  535. 'see_user_edit_base_founder_name',
  536. 'see_user_create_own_vice_founder',
  537. 'see_user_profile_edit_username',
  538. 'see_user_manage_display',
  539. 'see_user_manage_founder',
  540. 'see_user_manage_clerk',
  541. 'see_user_manage_check',
  542. 'see_user_manage_recycle',
  543. 'see_user_manage_fields',
  544. 'see_user_manage_expire',
  545. 'see_workorder',
  546. 'see_modules_deactivate',
  547. ),
  548. 'vice_founder' => array(
  549. 'see_account_manage_users_adduser',
  550. 'see_account_manage_users_edit_owner',
  551. 'see_account_manage_users_set_permission_for_manager',
  552. 'see_account_manage_users_set_permission_for_operator',
  553. 'see_account_manage_users_deloperator',
  554. 'see_account_manage_users_delmanager',
  555. 'see_account_manage_display',
  556. 'see_account_manage_recycle',
  557. 'see_module_manage_system_group_add',
  558. 'see_permission_create_account_group',
  559. 'see_permission_module_group',
  560. 'see_permission_user_group',
  561. 'see_user_add_welcome_account',
  562. 'see_user_profile_account_num',
  563. 'see_user_manage_display',
  564. 'see_user_manage_check',
  565. 'see_user_manage_recycle',
  566. 'see_system_updatecache',
  567. ),
  568. 'owner' => array(
  569. 'see_system_updatecache',
  570. 'see_account_manage_users_set_permission_for_manager',
  571. 'see_account_manage_users_set_permission_for_operator',
  572. 'see_account_manage_users_deloperator',
  573. 'see_account_manage_users_delmanager',
  574. 'see_account_manage_display',
  575. 'see_account_manage_recycle',
  576. 'see_modules_recharge',
  577. 'see_user_add_welcome_account',
  578. 'see_user_profile_account_num',
  579. ),
  580. 'manager' => array(
  581. 'see_account_manage_users_set_permission_for_operator',
  582. 'see_account_manage_users_deloperator',
  583. 'see_account_manage_display',
  584. 'see_user_profile_welcome',
  585. 'see_system_updatecache',
  586. 'see_user_add_welcome_account',
  587. 'see_user_profile_account_num',
  588. ),
  589. 'operator' => array(
  590. 'see_account_manage_display',
  591. 'see_user_profile_welcome',
  592. 'see_system_updatecache',
  593. 'see_user_add_welcome_account',
  594. 'see_user_profile_account_num',
  595. ),
  596. 'clerk' => array(
  597. ),
  598. 'unbind_user' => array(
  599. 'see_user_profile_welcome',
  600. 'see_system_updatecache',
  601. ),
  602. 'expired' => array(),
  603. ),
  604. );
  605. return $we7_file_permission;