Remove unneccesary filter on allRoles

This commit is contained in:
Michael Rogers 2023-06-21 18:04:49 -05:00
parent 4902b31270
commit e53e761a1d
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ class UserAPI extends EventEmitter {
* @returns {Boolean} * @returns {Boolean}
*/ */
canProvideStatusForRole() { canProvideStatusForRole() {
if (!this || !this.hasProvider()) { if (!this.hasProvider()) {
return null; return null;
} }

View File

@ -75,7 +75,7 @@ export default {
.map(role => ({ .map(role => ({
key: role, key: role,
name: role name: role
})).filter(this.openmct.user.canProvideStatusForRole); }));
const dialog = this.openmct.overlays.selection({ const dialog = this.openmct.overlays.selection({
selectionOptions, selectionOptions,