本卡屬 FR-188(母卡),D7 的主系統端。嚴重度:中。

問題是什麼(白話)

帳號沒有掛部門時,新增設備等要求部門的寫入會被資料庫權限規則(RLS)擋下,畫面只看到「Error in ProgrammingError」的 500,使用者不知道要找管理員把帳號加進部門。

首腦核對:雲端錯誤 psycopg.errors.InsufficientPrivilege: new row violates row-level security policy for table "devices",參數 org_unit_id: None。

在哪裡

/Users/chouraymond/Projects/Billows/Audit-Manager/compliance-manager-be/core/app_factory.py     全域錯誤處理註冊
jedi_common.handler.handler.register_error_handlers   套件的全域處理(先查有沒有可掛的點)

怎麼修

手測(首腦在 DEV)

紀律