Prototype with check permissions