Skip to content

Commit

Permalink
fix: 完善 trigger.delete 访问规则;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jun 8, 2021
1 parent 8e3dbcf commit 502d6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/rules/admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"read": "$has('trigger.read')",
"update": "$has('trigger.edit')",
"add": "$has('trigger.create')",
"remove": "$has('trigger.delete')",
"remove": "$has('trigger.delete') && query.status === 0",
"count": "$has('trigger.read')"
}
}

0 comments on commit 502d6f1

Please sign in to comment.