Study attachment as readonly, if study is readonly