Should be checking resolved permission instead of default state setting