Restrict teacher permissions when specified by local settings