We try to write the functions in a way, that there is only one return value at the end of it. For example:

```python
self.object = self.get_object()
if self.object.type == self.object.ORGANIZATIONAL_ITEM:
    permission = request.user.has_perm('agenda.can_see_orga_items')
else:
    permission = request.user.has_perm('agenda.can_see_agenda')
return permission
```