No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

auth_rule.php 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. <?php
  2. /**
  3. * 易优CMS
  4. * ============================================================================
  5. * 版权所有 2016-2028 海口快推科技有限公司,并保留所有权利。
  6. * 网站地址: http://www.eyoucms.com
  7. * ----------------------------------------------------------------------------
  8. * 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
  9. * ============================================================================
  10. * Author: 小虎哥 <1105415366@qq.com>
  11. * Date: 2018-4-3
  12. */
  13. /**
  14. * 权限属性说明
  15. * array
  16. * id 主键ID
  17. * menu_id 一级模块ID
  18. * menu_id2 二级模块ID
  19. * name 权限名称
  20. * is_modules 是否显示在分组下
  21. * sort_order 排序号
  22. * auths 权限列表(格式:控制器@*,控制器@操作名 --多个权限以逗号隔开)
  23. */
  24. return [
  25. [
  26. 'id' => 1,
  27. 'menu_id' => 1001,
  28. 'menu_id2' => 0,
  29. 'name' => '栏目管理',
  30. 'is_modules' => 1,
  31. 'sort_order' => 100,
  32. 'auths' => 'Arctype@index,Arctype@add,Arctype@edit,Arctype@del,Arctype@pseudo_del',
  33. ],
  34. [
  35. 'id' => 2,
  36. 'menu_id' => 1002,
  37. 'menu_id2' => 0,
  38. 'name' => '内容管理',
  39. 'is_modules' => 1,
  40. 'sort_order' => 100,
  41. 'auths' => 'Archives@*,Arctype@single_edit,ShopProduct@attrlist_index',
  42. ],
  43. [
  44. 'id' => 3, // 广告管理
  45. 'menu_id' => 1003,
  46. 'menu_id2' => 0,
  47. 'name' => '允许操作',
  48. 'is_modules' => 1,
  49. 'sort_order' => 100,
  50. 'auths' => 'Other@*,AdPosition@*',
  51. ],
  52. [
  53. 'id' => 4,
  54. 'menu_id' => 2001,
  55. 'menu_id2' => 2001001,
  56. 'name' => '网站设置',
  57. 'is_modules' => 1,
  58. 'sort_order' => 10,
  59. 'auths' => 'System@web',
  60. ],
  61. [
  62. 'id' => 5,
  63. 'menu_id' => 2001,
  64. 'menu_id2' => 2001002,
  65. 'name' => '核心设置',
  66. 'is_modules' => 1,
  67. 'sort_order' => 20,
  68. 'auths' => 'System@web2',
  69. ],
  70. [
  71. 'id' => 6,
  72. 'menu_id' => 2001,
  73. 'menu_id2' => 2001003,
  74. 'name' => '附件设置',
  75. 'is_modules' => 1,
  76. 'sort_order' => 30,
  77. 'auths' => 'System@basic',
  78. ],
  79. [
  80. 'id' => 7,
  81. 'menu_id' => 2004,
  82. 'menu_id2' => 2004009,
  83. 'name' => '水印配置',
  84. 'is_modules' => 1,
  85. 'sort_order' => 20,
  86. 'auths' => 'System@water',
  87. ],
  88. [
  89. 'id' => 8,
  90. 'menu_id' => 2003,
  91. 'menu_id2' => 2003001,
  92. 'name' => 'URL配置',
  93. 'is_modules' => 1,
  94. 'sort_order' => 10,
  95. 'auths' => 'Seo@*',
  96. ],
  97. [
  98. 'id' => 9,
  99. 'menu_id' => 2003,
  100. 'menu_id2' => 2003003,
  101. 'name' => '友情链接',
  102. 'is_modules' => 1,
  103. 'sort_order' => 30,
  104. 'auths' => 'Links@*',
  105. ],
  106. [
  107. 'id' => 10,
  108. 'menu_id' => 2004,
  109. 'menu_id2' => 2004001,
  110. 'name' => '管理员',
  111. 'is_modules' => 1,
  112. 'sort_order' => 50,
  113. 'auths' => 'Admin@admin_pwd,Admin@index',
  114. ],
  115. [
  116. 'id' => 11,
  117. 'menu_id' => 2004,
  118. 'menu_id2' => 2004002,
  119. 'name' => '备份还原',
  120. 'is_modules' => 1,
  121. 'sort_order' => 70,
  122. 'auths' => 'Tools@*',
  123. ],
  124. [
  125. 'id' => 12,
  126. 'menu_id' => 2004,
  127. 'menu_id2' => 2004003,
  128. 'name' => '模板管理',
  129. 'is_modules' => 1,
  130. 'sort_order' => 100,
  131. 'auths' => 'Filemanager@*',
  132. ],
  133. [
  134. 'id' => 13,
  135. 'menu_id' => 2001,
  136. 'menu_id2' => 2001005,
  137. 'name' => '接口配置',
  138. 'is_modules' => 1,
  139. 'sort_order' => 50,
  140. 'auths' => 'System@api_conf,System@smtp,System@smtp_tpl,System@smtp_tpl_edit,System@sms,System@sms_tpl,System@microsite,PayApi@*,Canal@*',
  141. ],
  142. // [
  143. // 'id' => 14,
  144. // 'menu_id' => 2004,
  145. // 'menu_id2' => 2004005,
  146. // 'name' => '清除缓存',
  147. // 'is_modules' => 1,
  148. // 'sort_order' => 100,
  149. // 'auths' => 'System@clear_cache',
  150. // ],
  151. [
  152. 'id' => 15,
  153. 'menu_id' => 2005,
  154. 'menu_id2' => 0,
  155. 'name' => '插件应用',
  156. 'is_modules' => 1,
  157. 'sort_order' => 100,
  158. 'auths' => 'Weapp@index,Weapp@create,Weapp@pack,Weapp@upload,Weapp@disable,Weapp@install,Weapp@enable,Weapp@execute',
  159. ],
  160. [
  161. 'id' => 16,
  162. 'menu_id' => 2002,
  163. 'menu_id2' => 0,
  164. 'name' => '允许操作',
  165. 'is_modules' => 1,
  166. 'sort_order' => 100,
  167. 'auths' => 'Uiset@*',
  168. ],
  169. [
  170. 'id' => 17,
  171. 'menu_id' => 2005,
  172. 'menu_id2' => 0,
  173. 'name' => '插件卸载',
  174. 'is_modules' => 0,
  175. 'sort_order' => 100,
  176. 'auths' => 'Weapp@uninstall',
  177. ],
  178. [
  179. 'id' => 18,
  180. 'menu_id' => 2004,
  181. 'menu_id2' => 2004100,
  182. 'name' => '权限组',
  183. 'is_modules' => 0,
  184. 'sort_order' => 100,
  185. 'auths' => 'Admin@admin_add,Admin@admin_del,AuthRole@*',
  186. ],
  187. [
  188. 'id' => 19,
  189. 'menu_id' => 2004,
  190. 'menu_id2' => 2004006,
  191. 'name' => '回收站',
  192. 'is_modules' => 1,
  193. 'sort_order' => 60,
  194. 'auths' => 'RecycleBin@*',
  195. ],
  196. [
  197. 'id' => 20,
  198. 'menu_id' => 2004,
  199. 'menu_id2' => 2004007,
  200. 'name' => '频道模型',
  201. 'is_modules' => 1,
  202. 'sort_order' => 80,
  203. 'auths' => 'Channeltype@*,Field@*',
  204. ],
  205. [
  206. 'id' => 21,
  207. 'menu_id' => 2006,
  208. 'menu_id2' => 0,
  209. 'name' => '允许操作',
  210. 'is_modules' => 1,
  211. 'sort_order' => 100,
  212. 'auths' => 'Member@*',
  213. ],
  214. [
  215. 'id' => 22,
  216. 'menu_id' => 2004,
  217. 'menu_id2' => 2004004,
  218. 'name' => '栏目字段',
  219. 'is_modules' => 1,
  220. 'sort_order' => 90,
  221. 'auths' => 'Field@arctype_index,Field@arctype_add,Field@arctype_edit,Field@arctype_del',
  222. ],
  223. [
  224. 'id' => 23,
  225. 'menu_id' => 2008,
  226. 'menu_id2' => 0,
  227. 'name' => '允许操作',
  228. 'is_modules' => 1,
  229. 'sort_order' => 100,
  230. 'auths' => 'Statistics@*,Shop@*,ShopProduct@*,Member@*',
  231. ],
  232. [
  233. 'id' => 24,
  234. 'menu_id' => 2009,
  235. 'menu_id2' => 0,
  236. 'name' => '允许操作',
  237. 'is_modules' => 1,
  238. 'sort_order' => 100,
  239. 'auths' => 'Diyminipro@*',
  240. ],
  241. [
  242. 'id' => 25,
  243. 'menu_id' => 2003,
  244. 'menu_id2' => 2003002,
  245. 'name' => 'Sitemap',
  246. 'is_modules' => 1,
  247. 'sort_order' => 20,
  248. 'auths' => 'Sitemap@*',
  249. ],
  250. [
  251. 'id' => 26,
  252. 'menu_id' => 2004,
  253. 'menu_id2' => 2004008,
  254. 'name' => '文档属性',
  255. 'is_modules' => 1,
  256. 'sort_order' => 10,
  257. 'auths' => 'ArchivesFlag@*',
  258. ],
  259. [
  260. 'id' => 27,
  261. 'menu_id' => 2004,
  262. 'menu_id2' => 2004010,
  263. 'name' => '缩略图配置',
  264. 'is_modules' => 1,
  265. 'sort_order' => 30,
  266. 'auths' => 'System@thumb',
  267. ],
  268. [
  269. 'id' => 28,
  270. 'menu_id' => 2004,
  271. 'menu_id2' => 2004011,
  272. 'name' => 'TAG管理',
  273. 'is_modules' => 1,
  274. 'sort_order' => 40,
  275. 'auths' => 'Tags@*',
  276. ],
  277. [
  278. 'id' => 29,
  279. 'menu_id' => 2004,
  280. 'menu_id2' => 2004012,
  281. 'name' => '模块开关',
  282. 'is_modules' => 1,
  283. 'sort_order' => 1,
  284. 'auths' => 'Index@switch_map_0',
  285. ],
  286. [
  287. 'id' => 30,
  288. 'menu_id' => 1004,
  289. 'menu_id2' => 0,
  290. 'name' => '允许操作',
  291. 'is_modules' => 1,
  292. 'sort_order' => 100,
  293. 'auths' => 'Archives@index_draft',
  294. ],
  295. [
  296. 'id' => 31,
  297. 'menu_id' => 1005,
  298. 'menu_id2' => 1005001,
  299. 'name' => '快捷导航',
  300. 'is_modules' => 1,
  301. 'sort_order' => 100,
  302. 'auths' => 'Index@ajax_quickmenu',
  303. ],
  304. [
  305. 'id' => 32,
  306. 'menu_id' => 1005,
  307. 'menu_id2' => 1005002,
  308. 'name' => '内容统计',
  309. 'is_modules' => 1,
  310. 'sort_order' => 100,
  311. 'auths' => 'Index@ajax_content_total',
  312. ],
  313. [
  314. 'id' => 33,
  315. 'menu_id' => 2004,
  316. 'menu_id2' => 2004013,
  317. 'name' => '导航管理',
  318. 'is_modules' => 1,
  319. 'sort_order' => 44,
  320. 'auths' => 'Navigation@*',
  321. ],
  322. [
  323. 'id' => 34,
  324. 'menu_id' => 2001,
  325. 'menu_id2' => 2001006,
  326. 'name' => '自定义变量',
  327. 'is_modules' => 1,
  328. 'sort_order' => 60,
  329. 'auths' => 'System@customvar,System@customvar_index,System@customvar_save,System@customvar_del',
  330. ],
  331. [
  332. 'id' => 35,
  333. 'menu_id' => 2004,
  334. 'menu_id2' => 2004014,
  335. 'name' => '站内通知',
  336. 'is_modules' => 1,
  337. 'sort_order' => 120,
  338. 'auths' => 'UsersNotice@*,Notify@*',
  339. ],
  340. [
  341. 'id' => 36,
  342. 'menu_id' => 2004,
  343. 'menu_id2' => 2004015,
  344. 'name' => '验证码管理',
  345. 'is_modules' => 1,
  346. 'sort_order' => 110,
  347. 'auths' => 'Vertify@*',
  348. ],
  349. [
  350. 'id' => 37,
  351. 'menu_id' => 2004,
  352. 'menu_id2' => 2004016,
  353. 'name' => 'html生成',
  354. 'is_modules' => 1,
  355. 'sort_order' => 106,
  356. 'auths' => 'Seo@build',
  357. ],
  358. [
  359. 'id' => 38,
  360. 'menu_id' => 2004,
  361. 'menu_id2' => 2004017,
  362. 'name' => '安全中心',
  363. 'is_modules' => 1,
  364. 'sort_order' => 106,
  365. 'auths' => 'Security@*',
  366. ],
  367. [
  368. 'id' => 39,
  369. 'menu_id' => 2004,
  370. 'menu_id2' => 2004018,
  371. 'name' => '留言管理',
  372. 'is_modules' => 1,
  373. 'sort_order' => 106,
  374. 'auths' => 'Form@*,Guestbook@details,Guestbook@del',
  375. ],
  376. [
  377. 'id' => 40,
  378. 'menu_id' => 2004,
  379. 'menu_id2' => 2004019,
  380. 'name' => '城市分站',
  381. 'is_modules' => 1,
  382. 'sort_order' => 106,
  383. 'auths' => 'Citysite@*',
  384. ],
  385. [
  386. 'id' => 41,
  387. 'menu_id' => 2004,
  388. 'menu_id2' => 2004020,
  389. 'name' => '当前导航',
  390. 'is_modules' => 1,
  391. 'sort_order' => 2,
  392. 'auths' => 'Index@switch_map_1',
  393. ],
  394. [
  395. 'id' => 42,
  396. 'menu_id' => 2004,
  397. 'menu_id2' => 2004021,
  398. 'name' => '订单管理',
  399. 'is_modules' => 1,
  400. 'sort_order' => 120,
  401. 'auths' => 'Order@*',
  402. ],
  403. [
  404. 'id' => 43,
  405. 'menu_id' => 2004,
  406. 'menu_id2' => 2004022,
  407. 'name' => '搜索管理',
  408. 'is_modules' => 1,
  409. 'sort_order' => 130,
  410. 'auths' => 'Search@*',
  411. ],
  412. [
  413. 'id' => 44,
  414. 'menu_id' => 2004,
  415. 'menu_id2' => 2004023,
  416. 'name' => '积分兑换',
  417. 'is_modules' => 1,
  418. 'sort_order' => 140,
  419. 'auths' => 'Memgift@*',
  420. ],
  421. [
  422. 'id' => 46,
  423. 'menu_id' => 2004,
  424. 'menu_id2' => 2004025,
  425. 'name' => '主题风格',
  426. 'is_modules' => 1,
  427. 'sort_order' => 107,
  428. 'auths' => 'Index@theme_index,Index@theme_conf,Index@theme_welcome_conf,Index@theme_add_login',
  429. ],
  430. [
  431. 'id' => 47,
  432. 'menu_id' => 2004,
  433. 'menu_id2' => 2004026,
  434. 'name' => '外贸助手',
  435. 'is_modules' => 1,
  436. 'sort_order' => 108,
  437. 'auths' => 'Foreign@*',
  438. ],
  439. /*[
  440. 'id' => 48,
  441. 'menu_id' => 1006,
  442. 'menu_id2' => 0,
  443. 'name' => '允许操作',
  444. 'is_modules' => 1,
  445. 'sort_order' => 100,
  446. 'auths' => 'Archives@index_reback',
  447. ],*/
  448. ];