permission.inc.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  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. ),
  124. 'mc' => array(
  125. 'default' => '',
  126. 'direct' => array(),
  127. 'vice_founder' => array('mc*'),
  128. 'owner' => array('mc*'),
  129. 'manager' => array(
  130. 'chats',
  131. 'fields',
  132. 'group',
  133. 'trade',
  134. ),
  135. 'operator' => array(
  136. 'chats',
  137. 'fields',
  138. 'group',
  139. 'trade',
  140. ),
  141. 'clerk' => array(),
  142. 'unbind_user' => array(),
  143. ),
  144. 'module' => array(
  145. 'default' => '',
  146. 'direct' => array(),
  147. 'vice_founder' => array('module*'),
  148. 'owner' => array(
  149. 'manage-account',
  150. 'manage-system',
  151. 'permission',
  152. 'display',
  153. ),
  154. 'manager' => array(
  155. 'manage-account',
  156. 'display',
  157. ),
  158. 'operator' => array(
  159. 'manage-account',
  160. 'display',
  161. ),
  162. 'clerk' => array(
  163. 'display',
  164. ),
  165. 'unbind_user' => array(),
  166. ),
  167. 'platform' => array(
  168. 'default' => '',
  169. 'direct' => array(),
  170. 'vice_founder' => array('platform*'),
  171. 'owner' => array('platform*'),
  172. 'manager' => array(
  173. 'cover',
  174. 'reply',
  175. 'material'
  176. ),
  177. 'operator' => array(
  178. 'cover',
  179. 'reply',
  180. 'material'
  181. ),
  182. 'clerk' => array(
  183. 'reply',
  184. 'cover',
  185. 'material'
  186. ),
  187. 'unbind_user' => array(),
  188. ),
  189. 'profile' => array(
  190. 'default' => '',
  191. 'direct' => array(),
  192. 'vice_founder' => array('profile*'),
  193. 'owner' => array('profile*'),
  194. 'manager' => array(),
  195. 'operator' => array(),
  196. 'clerk' => array(),
  197. 'unbind_user' => array(),
  198. ),
  199. 'site' => array(
  200. 'default' => '',
  201. 'direct' => array(
  202. 'entry',
  203. ),
  204. 'vice_founder' => array('site*'),
  205. 'owner' => array('site*'),
  206. 'manager' => array(
  207. 'editor',
  208. 'article',
  209. 'category',
  210. 'style',
  211. 'nav',
  212. 'slide',
  213. ),
  214. 'operator' => array(
  215. 'editor',
  216. 'article',
  217. 'category',
  218. 'style',
  219. 'nav',
  220. 'slide',
  221. ),
  222. 'clerk' => array(),
  223. 'unbind_user' => array(),
  224. ),
  225. 'statistics' => array(
  226. 'default' => '',
  227. 'direct' => array(),
  228. 'vice_founder' => array('statistics*'),
  229. 'owner' => array('statistics*'),
  230. 'manager' => array(),
  231. 'operator' => array(),
  232. 'clerk' => array(),
  233. 'unbind_user' => array(),
  234. ),
  235. 'store' => array(
  236. 'default' => '',
  237. 'direct' => array(),
  238. 'vice_founder' => array(
  239. 'goods-buyer',
  240. 'orders',
  241. ),
  242. 'owner' => array(
  243. 'goods-buyer',
  244. 'orders',
  245. ),
  246. 'manager' => array(
  247. 'goods-buyer',
  248. 'orders',
  249. ),
  250. 'operator' => array(
  251. 'goods-buyer',
  252. 'orders',
  253. ),
  254. 'clerk' => array(),
  255. 'unbind_user' => array(),
  256. ),
  257. 'system' => array(
  258. 'default' => '',
  259. 'direct' => array(),
  260. 'vice_founder' => array(
  261. 'template',
  262. 'updatecache',
  263. 'workorder',
  264. ),
  265. 'owner' => array(
  266. 'updatecache',
  267. 'workorder',
  268. ),
  269. 'manager' => array(
  270. 'updatecache',
  271. 'workorder',
  272. ),
  273. 'operator' => array(
  274. 'account',
  275. 'updatecache',
  276. 'workorder',
  277. ),
  278. 'clerk' => array(
  279. 'workorder',
  280. ),
  281. 'unbind_user' => array(),
  282. ),
  283. 'user' => array(
  284. 'default' => 'display',
  285. 'direct' => array(
  286. 'login',
  287. 'register',
  288. 'logout',
  289. 'find-password',
  290. 'third-bind'
  291. ),
  292. 'vice_founder' => array('user*'),
  293. 'owner' => array(
  294. 'profile',
  295. ),
  296. 'manager' => array(
  297. 'profile',
  298. ),
  299. 'operator' => array(
  300. 'profile',
  301. ),
  302. 'clerk' => array(
  303. 'profile',
  304. ),
  305. 'unbind_user' => array(),
  306. ),
  307. 'wxapp' => array(
  308. 'default' => '',
  309. 'direct' => array(),
  310. 'vice_founder' => array('wxapp*'),
  311. 'owner' => array('wxapp*'),
  312. 'manager' => array(
  313. 'display',
  314. 'version',
  315. 'post',
  316. ),
  317. 'operator' => array(
  318. 'display',
  319. 'version',
  320. 'post',
  321. ),
  322. 'clerk' => array(
  323. 'display',
  324. ),
  325. 'unbind_user' => array(),
  326. ),
  327. 'webapp' => array(
  328. 'default' => '',
  329. 'direct' => array(),
  330. 'vice_founder' => array('webapp*'),
  331. 'owner' => array('webapp*'),
  332. 'manager' => array(
  333. 'home',
  334. 'manage',
  335. ),
  336. 'operator' => array(
  337. 'home',
  338. 'manage'
  339. ),
  340. 'clerk' => array(
  341. 'home'
  342. ),
  343. 'unbind_user' => array(),
  344. ),
  345. 'phoneapp' => array(
  346. 'default' => '',
  347. 'direct' => array(),
  348. 'vice_founder' => array('phoneapp*'),
  349. 'owner' => array('phoneapp*'),
  350. 'manager' => array(
  351. 'display',
  352. 'manage',
  353. 'version'
  354. ),
  355. 'operator' => array(
  356. 'display',
  357. 'manage',
  358. 'version'
  359. ),
  360. 'clerk' => array(
  361. 'display'
  362. ),
  363. ),
  364. 'utility' => array(
  365. 'default' => '',
  366. 'direct' => array(
  367. 'verifycode',
  368. 'code',
  369. 'file',
  370. 'bindcall',
  371. 'subscribe',
  372. 'wxcode',
  373. 'modules',
  374. 'link',
  375. ),
  376. 'vice_founder' => array(
  377. 'user',
  378. 'emulator',
  379. ),
  380. 'owner' => array(
  381. 'emulator',
  382. ),
  383. 'manager' => array(
  384. 'emulator',
  385. ),
  386. 'operator' => array(
  387. 'emulator',
  388. ),
  389. 'unbind_user' => array(),
  390. ),
  391. 'append' => array('append*'),
  392. 'see_more_info' => array(
  393. 'founder' => array(
  394. 'see_module_manage_system_except_installed',
  395. 'see_module_manage_system_ugrade',
  396. 'see_module_manage_system_stop',
  397. 'see_module_manage_system_install',
  398. 'see_module_manage_system_shopinfo',
  399. 'see_module_manage_system_info_edit',
  400. 'see_module_manage_system_detailinfo',
  401. 'see_module_manage_system_group_add',
  402. 'see_account_manage_module_tpl_all_permission',
  403. 'see_account_manage_sms_blance',
  404. 'see_account_manage_users_edit',
  405. 'see_account_manage_users_adduser',
  406. 'see_account_manage_users_add_viceuser',
  407. 'see_system_upgrade',
  408. 'see_system_manage_clerk',
  409. 'see_system_manage_user_setting',
  410. 'see_system_manage_vice_founder',
  411. 'see_system_add_vice_founder',
  412. 'see_notice_post',
  413. 'see_module_manage_system_newversion',
  414. 'see_user_edit_base_founder_name',
  415. 'see_user_create_own_vice_founder'
  416. ),
  417. 'vice_founder' => array(
  418. 'see_account_manage_users_adduser',
  419. 'see_module_manage_system_group_add',
  420. ),
  421. 'owner' => array(
  422. ),
  423. 'manager' => array(
  424. ),
  425. 'operator' => array(
  426. ),
  427. ),
  428. );
  429. return $we7_file_permission;