Restrict users from changing a ticket to an InactiveStatus

Hi List,

The subject says it all.

I have groups of users who are not to be changing the status of a ticket to
an inactive status, the question is how to do this?

Lets say I have A group called SA and a group called SD.

I want SD to be able to set tickets to an inactive state,

I want SA to be able to edit everything else in a ticket, but not change the
state to an inactive state (I would prefer them not to be shown inactive
states at all).

Thanks,
Bill G.