Guard superAdmin look when me is missing

pull/10616/head
Brandon Farmer 2018-05-01 16:28:06 -07:00
parent 4241691b6b
commit d1f7cc6c14
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ export class CheckSources extends Component<Props, State> {
}
if (
me.superAdmin &&
_.get(me, 'superAdmin', false) &&
!organizations.find(o => o.id === currentOrganization.id)
) {
notify(copy.notifyUserRemovedFromCurrentOrg())