This commit is contained in:
Daniel Ponte 2025-02-02 11:48:44 -05:00
parent 24c66e7c87
commit 0adf3b4978

View file

@ -588,6 +588,7 @@ func (t *cache) UpdateTG(ctx context.Context, input database.UpdateTalkgroupPara
}
func (t *cache) DeleteSystem(ctx context.Context, id int) error {
// talkgroups don't have owners, so we can use a generic Resource
_, err := rbac.Check(ctx, rbac.UseResource(entities.ResourceTalkgroup), rbac.WithActions(entities.ActionDelete))
if err != nil {
return err