comment
This commit is contained in:
parent
24c66e7c87
commit
0adf3b4978
1 changed files with 1 additions and 0 deletions
|
@ -588,6 +588,7 @@ func (t *cache) UpdateTG(ctx context.Context, input database.UpdateTalkgroupPara
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *cache) DeleteSystem(ctx context.Context, id int) error {
|
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))
|
_, err := rbac.Check(ctx, rbac.UseResource(entities.ResourceTalkgroup), rbac.WithActions(entities.ActionDelete))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue