Add couch permission check.