def has_permission(self, obj=None):
        if self.is_active:
            return obj in self.permissions
        else:
            return False
Check that user have a some permission.
dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/user/abstractions.py/User.has_permission