acl.conf.php 2.1 KB

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