Allow multiple permissions to be specified. Fix docs.