Commit 0b411a4
committed
[FIX] account_operating_unit: use sudo() to read journal in OU onchange
Users without journal read permission get AccessError when the
_onchange_operating_unit triggers. Use sudo() to safely read
journal.operating_unit_id and journal.type.
Port of BITVAX fix from 16.0-fix-journal-access-denied branch.1 parent 8a6ec74 commit 0b411a4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments