you dont need to evalueate true in this case, use only your permission.type

```
if permission.type then @newAlert() else new webNotification.errorAlert()
```