Made applyPermissions available to non-pages (i.e. tasks)