acl.conf.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. // anonymous user can only access Blog index page.
  3. $acl['anonymous']['allow'] = array(
  4. 'LoginController' => array('login', 'Signin', 'Signin2', 'Signout'),
  5. 'UpgradeController' => '*',
  6. 'SProjectController' => array('interMediateUpload'),
  7. // 'ChangeController' => array('fileUpload','changeNew','changeApproval','changeReport')
  8. );
  9. //$acl['anonymous']['deny'] = array(
  10. // 'UserController' => array('login', 'registerAccount'),
  11. //);
  12. //$acl['member']['allow'] = array(
  13. // 'UploadController' => '*',
  14. // 'UserController' => '*',
  15. // 'ContentrController' => '*',
  16. // 'NoticeController' => '*'
  17. //);
  18. //$acl['member']['deny'] = array(
  19. // 'StandardInventoryController' => '*',
  20. //
  21. //);
  22. $acl['vip']['allow'] = array(
  23. 'ProjectController' => '*',
  24. 'RProjectController' => '*',
  25. 'SProjectController' => '*',
  26. 'UserController' => '*',
  27. 'SignController' => '*',
  28. 'ChangeController' => '*'
  29. );
  30. //$acl['audit']['allow'] = array(
  31. // 'CensorController' => '*',
  32. // 'UserController' => '*',
  33. //);
  34. //$acl['report']['allow'] = array(
  35. // 'ReportController' => '*',
  36. // 'UserController' => '*',
  37. //);
  38. //
  39. //$acl['vip']['allow'] =
  40. // $acl['member']['allow'] = array(
  41. // 'SnsController' => '*',
  42. // 'BlogController' => '*',
  43. //);
  44. //
  45. //$acl['member']['allow'] = array(
  46. // 'UploadController' => array('index')
  47. //// 'BlogController' => array('deleteComment', 'writePost')
  48. //);
  49. //
  50. //$acl['vip']['deny'] = array(
  51. // 'SnsController' => array('banUser'),
  52. // 'BlogController' => array('deleteComment', 'writePost')
  53. //);
  54. //
  55. //$acl['admin']['allow'] = '*';
  56. //
  57. //$acl['member']['failRoute'] = array(
  58. // '_default' => '/error/member', //if not found this will be used
  59. // 'SnsController/banUser' => '/error/member/sns/notAdmin',
  60. // 'SnsController/showVipHome' => '/error/member/sns/notVip',
  61. // 'BlogController' => '/error/member/blog/notAdmin'
  62. //);
  63. //
  64. //$acl['vip']['failRoute'] = array(
  65. // '_default' => '/error/vip', //if not found this will be used
  66. // 'SnsController/banUser' => '/error/member/sns/notAdmin',
  67. // 'BlogController' => '/error/member/blog/notAdmin'
  68. //);
  69. //
  70. //$acl['admin']['failRoute'] = array(
  71. // 'SnsController/showVipHome' => '/error/admin/sns/vipOnly'
  72. //);
  73. //
  74. //$acl['anonymous']['failRoute'] = array(
  75. // '_default' => '/signin',
  76. //);
  77. ?>