Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
Point two people tool comments at People::Lookup
Guido Boykea986f56f2df1
diff --git a/app/services/lalabase/tools/get_person.rb b/app/services/lalabase/tools/get_person.rbindex f2f1bf9..c30cea5 100644--- a/app/services/lalabase/tools/get_person.rb+++ b/app/services/lalabase/tools/get_person.rb@@ -5,7 +5,7 @@ module Lalabase# Reads one person of the organisation's directory as JSON (People S3), the counterpart of# get_ticket for the directory, addressed by the id find_people hands out. The card is where# the contact details are: email, phone and the additional details, for the one person the- # model chose (PeopleTool.card).+ # model chose (People::Lookup.card).## The id resolves through the asker's directory (People::Lookup#entry) and nowhere else# (never Person.find), so the id of another organisation, of a person the asker may not seediff --git a/app/services/lalabase/tools/people_tool.rb b/app/services/lalabase/tools/people_tool.rbindex b88d412..57553e9 100644--- a/app/services/lalabase/tools/people_tool.rb+++ b/app/services/lalabase/tools/people_tool.rb@@ -70,7 +70,8 @@ module Lalabase# token reaches (E1, People::Lookup.for_token), else not found like an organisation# outside it; the call runs under that organisation's tenant; the people right comes# next (refused); and the decision is marked for the D7 tripwire. PersonPolicy#index?- # reads the tenant, so a call that ran without it would be refused, not served.+ # reads the tenant, so a call that ran without it would be turned away (forbidden), not+ # served.def self.with_token_lookup(args, context)return Result.new(error: 'token context missing') unless token_wide?(context)