]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
lib: add missing permissions for patchwork_comment_id_seq
authorAli Alnubani <alialnu@nvidia.com>
Tue, 20 Jun 2023 11:06:07 +0000 (14:06 +0300)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sun, 25 Jun 2023 10:35:06 +0000 (11:35 +0100)
Grants UPDATE and SELECT privileges on patchwork_comment_id_seq table
for web and mail users to fix the following exception when comments
are parsed:
django.db.utils.ProgrammingError: permission denied for sequence
  patchwork_comment_id_seq

Fixes: 5b53f46def5f ("lib: fix table names")
Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
lib/sql/grant-all.postgres.sql

index baaad22b6734ccb2693c9bf60959d3f922b13247..5a89d6b2df0083e83b4df19d643ce422a50023d9 100644 (file)
@@ -49,6 +49,7 @@ GRANT SELECT, UPDATE ON
        patchwork_bundle_id_seq,
        patchwork_bundlepatch_id_seq,
        patchwork_check_id_seq,
+       patchwork_comment_id_seq,
        patchwork_cover_id_seq,
        patchwork_covercomment_id_seq,
        patchwork_delegationrule_id_seq,
@@ -91,6 +92,7 @@ GRANT SELECT ON
        patchwork_tag
 TO "nobody";
 GRANT UPDATE, SELECT ON
+       patchwork_comment_id_seq,
        patchwork_event_id_seq,
        patchwork_patch_id_seq,
        patchwork_patchtag_id_seq,