人人商城

permission.inc.php 10.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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. ),
  24. 'operator' => array(
  25. 'display',
  26. 'manage',
  27. 'post-step',
  28. ),
  29. 'clerk' => array(
  30. 'display',
  31. ),
  32. 'unbind_user' => array(),
  33. ),
  34. 'advertisement' => array(
  35. 'default' => '',
  36. 'direct' => array(),
  37. 'vice_founder' => array(),
  38. 'owner' => array(),
  39. 'manager' => array(),
  40. 'operator' => array(),
  41. 'clerk' => array(),
  42. 'unbind_user' => array(),
  43. ),
  44. 'article' => array(
  45. 'default' => '',
  46. 'direct' => array(
  47. 'notice-show',
  48. 'news-show',
  49. ),
  50. 'vice_founder' => array(),
  51. 'owner' => array(),
  52. 'manager' => array(),
  53. 'operator' => array(),
  54. 'clerk' => array(),
  55. 'unbind_user' => array(),
  56. ),
  57. 'message' => array(
  58. 'default' => '',
  59. 'direct' => array(
  60. 'notice',
  61. ),
  62. 'vice_founder' => array(),
  63. 'owner' => array(),
  64. 'manager' => array(),
  65. 'operator' => array(),
  66. 'clerk' => array(),
  67. 'unbind_user' => array(),
  68. ),
  69. 'cloud' => array(
  70. 'default' => 'touch',
  71. 'direct' => array(
  72. 'touch',
  73. 'dock',
  74. ),
  75. 'vice_founder' => array(),
  76. 'owner' => array(),
  77. 'manager' => array(),
  78. 'operator' => array(),
  79. 'clerk' => array(),
  80. 'unbind_user' => array(),
  81. ),
  82. 'cron' => array(
  83. 'default' => '',
  84. 'direct' => array(
  85. 'entry',
  86. ),
  87. 'vice_founder' => array(),
  88. 'owner' => array(),
  89. 'manager' => array(),
  90. 'operator' => array(),
  91. 'clerk' => array(),
  92. 'unbind_user' => array(),
  93. ),
  94. 'founder' => array(
  95. 'default' => '',
  96. 'direct' => array(),
  97. 'vice_founder' => array(),
  98. 'owner' => array(),
  99. 'manager' => array(),
  100. 'operator' => array(),
  101. 'clerk' => array(),
  102. 'unbind_user' => array(),
  103. ),
  104. 'help' => array(
  105. 'default' => '',
  106. 'direct' => array(),
  107. 'vice_founder' => array('help*'),
  108. 'owner' => array('help*'),
  109. 'manager' => array('help*'),
  110. 'operator' => array('help*'),
  111. 'clerk' => array(),
  112. 'unbind_user' => array(),
  113. ),
  114. 'home' => array(
  115. 'default' => '',
  116. 'direct' => array(),
  117. 'vice_founder' => array('home*'),
  118. 'owner' => array('home*'),
  119. 'manager' => array('home*'),
  120. 'operator' => array('home*'),
  121. 'clerk' => array('welcome'),
  122. 'unbind_user' => array(),
  123. 'expired' => array('welcome'),
  124. ),
  125. 'mc' => array(
  126. 'default' => '',
  127. 'direct' => array(),
  128. 'vice_founder' => array('mc*'),
  129. 'owner' => array('mc*'),
  130. 'manager' => array(
  131. 'chats',
  132. 'fields',
  133. 'group',
  134. 'trade',
  135. ),
  136. 'operator' => array(
  137. 'chats',
  138. 'fields',
  139. 'group',
  140. 'trade',
  141. ),
  142. 'clerk' => array(),
  143. 'unbind_user' => array(),
  144. ),
  145. 'module' => array(
  146. 'default' => '',
  147. 'direct' => array(),
  148. 'vice_founder' => array('module*'),
  149. 'owner' => array(
  150. 'manage-account',
  151. 'manage-system',
  152. 'permission',
  153. 'display',
  154. 'default-entry',
  155. ),
  156. 'manager' => array(
  157. 'manage-account',
  158. 'display',
  159. ),
  160. 'operator' => array(
  161. 'manage-account',
  162. 'display',
  163. ),
  164. 'clerk' => array(
  165. 'display',
  166. 'manage-account'
  167. ),
  168. 'unbind_user' => array(),
  169. ),
  170. 'platform' => array(
  171. 'default' => '',
  172. 'direct' => array(),
  173. 'vice_founder' => array('platform*'),
  174. 'owner' => array('platform*'),
  175. 'manager' => array(
  176. 'cover',
  177. 'reply',
  178. 'material'
  179. ),
  180. 'operator' => array(
  181. 'cover',
  182. 'reply',
  183. 'material'
  184. ),
  185. 'clerk' => array(
  186. 'reply',
  187. 'cover',
  188. 'material'
  189. ),
  190. 'unbind_user' => array(),
  191. ),
  192. 'profile' => array(
  193. 'default' => '',
  194. 'direct' => array(),
  195. 'vice_founder' => array('profile*'),
  196. 'owner' => array('profile*'),
  197. 'manager' => array(),
  198. 'operator' => array(),
  199. 'clerk' => array(),
  200. 'unbind_user' => array(),
  201. ),
  202. 'site' => array(
  203. 'default' => '',
  204. 'direct' => array(
  205. 'entry',
  206. ),
  207. 'vice_founder' => array('site*'),
  208. 'owner' => array('site*'),
  209. 'manager' => array(
  210. 'editor',
  211. 'article',
  212. 'category',
  213. 'style',
  214. 'nav',
  215. 'slide',
  216. ),
  217. 'operator' => array(
  218. 'editor',
  219. 'article',
  220. 'category',
  221. 'style',
  222. 'nav',
  223. 'slide',
  224. ),
  225. 'clerk' => array(
  226. 'nav',
  227. ),
  228. 'unbind_user' => array(),
  229. ),
  230. 'statistics' => array(
  231. 'default' => '',
  232. 'direct' => array(),
  233. 'vice_founder' => array('statistics*'),
  234. 'owner' => array('statistics*'),
  235. 'manager' => array(),
  236. 'operator' => array(),
  237. 'clerk' => array(),
  238. 'unbind_user' => array(),
  239. ),
  240. 'store' => array(
  241. 'default' => '',
  242. 'direct' => array(),
  243. 'vice_founder' => array(
  244. 'goods-buyer',
  245. 'orders',
  246. ),
  247. 'owner' => array(
  248. 'goods-buyer',
  249. 'orders',
  250. ),
  251. 'manager' => array(
  252. 'goods-buyer',
  253. 'orders',
  254. ),
  255. 'operator' => array(
  256. 'goods-buyer',
  257. 'orders',
  258. ),
  259. 'clerk' => array(),
  260. 'unbind_user' => array(),
  261. 'expired' => array(
  262. 'goods-buyer',
  263. 'orders',
  264. )
  265. ),
  266. 'system' => array(
  267. 'default' => '',
  268. 'direct' => array(),
  269. 'vice_founder' => array(
  270. 'template',
  271. 'updatecache',
  272. 'workorder',
  273. ),
  274. 'owner' => array(
  275. 'updatecache',
  276. 'workorder',
  277. ),
  278. 'manager' => array(
  279. 'updatecache',
  280. 'workorder',
  281. ),
  282. 'operator' => array(
  283. 'account',
  284. 'updatecache',
  285. 'workorder',
  286. ),
  287. 'clerk' => array(
  288. 'workorder',
  289. ),
  290. 'unbind_user' => array(),
  291. 'expired' => array(
  292. 'updatecache',
  293. )
  294. ),
  295. 'user' => array(
  296. 'default' => 'display',
  297. 'direct' => array(
  298. 'login',
  299. 'register',
  300. 'logout',
  301. 'find-password',
  302. 'third-bind'
  303. ),
  304. 'vice_founder' => array('user*'),
  305. 'owner' => array(
  306. 'profile',
  307. ),
  308. 'manager' => array(
  309. 'profile',
  310. ),
  311. 'operator' => array(
  312. 'profile',
  313. ),
  314. 'clerk' => array(
  315. 'profile',
  316. ),
  317. 'unbind_user' => array(),
  318. 'expired' => array(
  319. 'user*',
  320. )
  321. ),
  322. 'miniapp' => array(
  323. 'default' => '',
  324. 'direct' => array(),
  325. 'vice_founder' => array('miniapp*'),
  326. 'owner' => array('miniapp*'),
  327. 'manager' => array(
  328. 'display',
  329. 'version',
  330. 'post',
  331. ),
  332. 'operator' => array(
  333. 'display',
  334. 'version',
  335. 'post',
  336. ),
  337. 'clerk' => array(
  338. 'display',
  339. ),
  340. 'unbind_user' => array(),
  341. ),
  342. 'wxapp' => array(
  343. 'default' => '',
  344. 'direct' => array(),
  345. 'vice_founder' => array('wxapp*'),
  346. 'owner' => array('wxapp*'),
  347. 'manager' => array(
  348. 'display',
  349. 'version',
  350. 'post',
  351. 'auth',
  352. ),
  353. 'operator' => array(
  354. 'display',
  355. 'version',
  356. 'post',
  357. 'auth',
  358. ),
  359. 'clerk' => array(
  360. 'display',
  361. ),
  362. 'unbind_user' => array(),
  363. ),
  364. 'webapp' => array(
  365. 'default' => '',
  366. 'direct' => array(),
  367. 'vice_founder' => array('webapp*'),
  368. 'owner' => array('webapp*'),
  369. 'manager' => array(
  370. 'home',
  371. 'manage',
  372. ),
  373. 'operator' => array(
  374. 'home',
  375. 'manage'
  376. ),
  377. 'clerk' => array(
  378. 'home'
  379. ),
  380. 'unbind_user' => array(),
  381. ),
  382. 'phoneapp' => array(
  383. 'default' => '',
  384. 'direct' => array(),
  385. 'vice_founder' => array('phoneapp*'),
  386. 'owner' => array('phoneapp*'),
  387. 'manager' => array(
  388. 'display',
  389. 'manage',
  390. 'version'
  391. ),
  392. 'operator' => array(
  393. 'display',
  394. 'manage',
  395. 'version'
  396. ),
  397. 'clerk' => array(
  398. 'display'
  399. ),
  400. ),
  401. 'utility' => array(
  402. 'default' => '',
  403. 'direct' => array(
  404. 'verifycode',
  405. 'code',
  406. 'file',
  407. 'bindcall',
  408. 'subscribe',
  409. 'wxcode',
  410. 'modules',
  411. 'link',
  412. ),
  413. 'vice_founder' => array(
  414. 'user',
  415. 'emulator',
  416. ),
  417. 'owner' => array(
  418. 'emulator',
  419. ),
  420. 'manager' => array(
  421. 'emulator',
  422. ),
  423. 'operator' => array(
  424. 'emulator',
  425. ),
  426. 'unbind_user' => array(),
  427. ),
  428. 'append' => array('append*'),
  429. 'see_more_info' => array(
  430. 'founder' => array(
  431. 'see_module_manage_system_except_installed',
  432. 'see_module_manage_system_ugrade',
  433. 'see_module_manage_system_stop',
  434. 'see_module_manage_system_install',
  435. 'see_module_manage_system_shopinfo',
  436. 'see_module_manage_system_info_edit',
  437. 'see_module_manage_system_detailinfo',
  438. 'see_module_manage_system_group_add',
  439. 'see_module_manage_system_welcome_support',
  440. 'see_account_post_modules_tpl_edit_store_endtime',
  441. 'see_account_manage_module_tpl_all_permission',
  442. 'see_account_manage_sms_blance',
  443. 'see_account_manage_users_edit_vicefounder',
  444. 'see_account_manage_users_edit_owner',
  445. 'see_account_manage_users_set_permission_for_manager',
  446. 'see_account_manage_users_set_permission_for_operator',
  447. 'see_account_manage_users_addmanager',
  448. 'see_account_manage_users_delmanager',
  449. 'see_account_manage_users_deloperator',
  450. 'see_account_manage_users_adduser',
  451. 'see_account_manage_users_add_viceuser',
  452. 'see_system_upgrade',
  453. 'see_system_updatecache',
  454. 'see_system_manage_clerk',
  455. 'see_system_manage_user_setting',
  456. 'see_system_manage_vice_founder',
  457. 'see_system_add_vice_founder',
  458. 'see_notice_post',
  459. 'see_module_manage_system_newversion',
  460. 'see_user_edit_base_founder_name',
  461. 'see_user_create_own_vice_founder',
  462. 'see_user_profile_edit_username',
  463. 'see_user_profile_account_num',
  464. 'see_user_add_welcome_account',
  465. 'see_workorder',
  466. 'see_modules_deactivate',
  467. ),
  468. 'vice_founder' => array(
  469. 'see_account_manage_users_adduser',
  470. 'see_account_manage_users_edit_owner',
  471. 'see_account_manage_users_set_permission_for_manage',
  472. 'see_account_manage_users_set_permission_for_operator',
  473. 'see_account_manage_users_deloperator',
  474. 'see_account_manage_users_delmanager',
  475. 'see_module_manage_system_group_add',
  476. 'see_user_add_welcome_account',
  477. 'see_system_updatecache',
  478. ),
  479. 'owner' => array(
  480. 'see_system_updatecache',
  481. 'see_account_manage_users_set_permission_for_manage',
  482. 'see_account_manage_users_set_permission_for_operator',
  483. 'see_account_manage_users_deloperator',
  484. 'see_account_manage_users_delmanager',
  485. 'see_modules_recharge'
  486. ),
  487. 'manager' => array(
  488. 'see_account_manage_users_set_permission_for_operator',
  489. 'see_account_manage_users_deloperator',
  490. 'see_user_profile_welcome',
  491. 'see_system_updatecache',
  492. ),
  493. 'operator' => array(
  494. 'see_user_profile_welcome',
  495. 'see_system_updatecache',
  496. ),
  497. 'clerk' => array(
  498. ),
  499. 'unbind_user' => array(
  500. 'see_user_profile_welcome',
  501. 'see_system_updatecache',
  502. )
  503. ),
  504. );
  505. return $we7_file_permission;