Guard superAdmin look when me is missing
parent
4241691b6b
commit
d1f7cc6c14
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue