mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 00:31:06 +00:00
Remove unneccesary filter on allRoles
This commit is contained in:
parent
4902b31270
commit
e53e761a1d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user