29th / personnel-v2

Personnel management system version 2 (legacy)
4 stars 7 forks source link

Update path when ancestry is updated #505

Closed wilson29thid closed 3 years ago

wilson29thid commented 3 years ago

v2 still relies on path column for permissions; v3 uses the ancestry column, which is very similar but no outer /s, and I think it omits the record's own ID. Perhaps just add a before_save filter on the Unit model in v3, then prevent editing units in v2.