Skip to content

Commit ac9138b

Browse files
committed
fix(spp_scoring): restrict Activate/Deactivate buttons to scoring managers
Officers and viewers could see and click Activate/Deactivate buttons on scoring models even though their ACLs prevented the write from succeeding. Now the buttons are only visible to scoring managers.
1 parent 2f7ebb1 commit ac9138b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

spp_scoring/views/scoring_model_views.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
type="object"
1414
class="btn-primary"
1515
invisible="is_active"
16+
groups="spp_scoring.group_scoring_manager"
1617
/>
1718
<button
1819
name="action_deactivate"
1920
string="Deactivate"
2021
type="object"
2122
invisible="not is_active"
23+
groups="spp_scoring.group_scoring_manager"
2224
/>
2325
<field name="is_active" widget="boolean_toggle" readonly="1" />
2426
</header>

0 commit comments

Comments
 (0)