davical.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. Index: davical-0.9.8/dba/appuser_permissions.txt
  2. --- davical-0.9.8/dba/appuser_permissions.txt.orig 2009-12-24 09:50:16 +0100
  3. +++ davical-0.9.8/dba/appuser_permissions.txt 2009-12-25 10:24:46 +0100
  4. @@ -1,57 +1,44 @@
  5. -#
  6. -# This file is used by update-rscds-database to set the correct
  7. -# permissions for the application user. In newer installations
  8. -# the application user will probably be called app_davical (and
  9. -# the administrative user will be called dba_davical) but in
  10. -# older installations the application user was called 'general'
  11. -# and the administrative user was probably 'postgres'.
  12. -#
  13. -# See the wiki topic 'Database/Users' for more discussion.
  14. -#
  15. -# This file includes lines like:
  16. -# GRANT SELECT,...
  17. -# which define what gets granted to the following lines like:
  18. -# ON table1, table2, sequence1, function 3, view4, ...
  19. -# no user-serviceable parts inside, all whitespace is ignored,
  20. -# your mileage should not vary :-)
  21. -#
  22. GRANT SELECT,INSERT,UPDATE,DELETE
  23. - ON collection
  24. - ON caldav_data
  25. - ON calendar_item
  26. - ON relationship
  27. - ON locks
  28. - ON property
  29. - ON freebusy_ticket
  30. - ON usr
  31. - ON usr_setting
  32. - ON roles
  33. - ON role_member
  34. - ON session
  35. - ON tmp_password
  36. - ON group_member
  37. - ON principal
  38. - ON relationship_type
  39. - ON sync_tokens
  40. - ON sync_changes
  41. - ON grants
  42. - ON dav_principal
  43. + ON collection,
  44. + caldav_data,
  45. + calendar_item,
  46. + relationship,
  47. + locks,
  48. + property,
  49. + freebusy_ticket,
  50. + usr,
  51. + usr_setting,
  52. + roles,
  53. + role_member,
  54. + session,
  55. + tmp_password,
  56. + group_member,
  57. + principal,
  58. + relationship_type,
  59. + sync_tokens,
  60. + sync_changes,
  61. + grants,
  62. + dav_principal
  63. + TO davical;
  64. GRANT SELECT,UPDATE
  65. - ON relationship_type_rt_id_seq
  66. - ON dav_id_seq
  67. - ON usr_user_no_seq
  68. - ON roles_role_no_seq
  69. - ON session_session_id_seq
  70. - ON principal_type_principal_type_id_seq
  71. - ON sync_tokens_sync_token_seq
  72. + ON relationship_type_rt_id_seq,
  73. + dav_id_seq,
  74. + usr_user_no_seq,
  75. + roles_role_no_seq,
  76. + session_session_id_seq,
  77. + principal_type_principal_type_id_seq,
  78. + sync_tokens_sync_token_seq
  79. + TO davical;
  80. GRANT SELECT,INSERT
  81. ON time_zone
  82. + TO davical;
  83. GRANT SELECT
  84. - ON supported_locales
  85. - ON awl_db_revision
  86. - ON principal_type
  87. + ON supported_locales,
  88. + awl_db_revision,
  89. + principal_type
  90. + TO davical;
  91. Index: davical-0.9.8/inc/always.php
  92. --- davical-0.9.8/inc/always.php.orig 2009-12-24 10:16:11 +0100
  93. +++ davical-0.9.8/inc/always.php 2009-12-25 10:24:38 +0100
  94. @@ -88,14 +88,8 @@
  95. * access which could break DAViCal completely by causing output to start
  96. * too early.
  97. */
  98. -if ( @file_exists('/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php') ) {
  99. - include('/etc/davical/'.$_SERVER['SERVER_NAME'].'-conf.php');
  100. -}
  101. -else if ( @file_exists('/etc/davical/config.php') ) {
  102. - include('/etc/davical/config.php');
  103. -}
  104. -else if ( @file_exists('../config/config.php') ) {
  105. - include('../config/config.php');
  106. +if ( @file_exists("@l_prefix@/etc/davical/davical-config.php") ) {
  107. + include_once("@l_prefix@/etc/davical/davical-config.php");
  108. }
  109. else {
  110. include('davical_configuration_missing.php');