Adding permissions support to views