Best practice to revoke task authorization when the user unclaim it self

Hello there, what is the best practice to revoke user authorization from some task, when himself unclaim the task. When an user unclaim some task he still getting it authorization.