Skip to content

Commit

Permalink
Fix: Handle permission_clause for result permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold committed Feb 9, 2024
1 parent e66a7ac commit bdded3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/manage_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1143,9 +1143,10 @@ acl_where_owned_user (const char *user_id, const char *user_sql,
else if (strcmp (type, "result") == 0)
permission_clause
= g_strdup_printf ("%s"
" OR results%s.task IN"
" OR EXISTS"
" (SELECT id FROM %spermissions_subject"
" WHERE resource_type = 'task'"
" WHERE resource = results%s.task"
" AND resource_type = 'task'"
" AND (%s))",
clause,
get->trash ? "_trash" : "",
Expand Down

0 comments on commit bdded3a

Please sign in to comment.