Display third state for categories not fully restricted

Fixes #815