Check permission.