Merge "Document that configured groups must be visible to uploader" into stable-3.2
diff --git a/rv-reviewers/rv-reviewer.js b/rv-reviewers/rv-reviewer.js
index dd516c4..77500b2 100644
--- a/rv-reviewers/rv-reviewer.js
+++ b/rv-reviewers/rv-reviewer.js
@@ -16,6 +16,8 @@
*/
import {htmlTemplate} from './rv-reviewer_html.js';
+const SYSTEM_GROUP_PREFIX = 'global%3A';
+
class RvReviewer extends Polymer.Element {
/** @returns {string} name of the component */
static get is() { return 'rv-reviewer'; }
@@ -92,7 +94,8 @@
if (!groups) { return []; }
const groupSuggestions = [];
for (const key in groups) {
- if (!groups.hasOwnProperty(key)) { continue; }
+ if (!groups.hasOwnProperty(key) ||
+ groups[key].id.startsWith(SYSTEM_GROUP_PREFIX)) { continue; }
groupSuggestions.push({
name: key,
value: key,