public function getAssignedActions()
    {
        $assigned = $this->roles->map(
            function (Role $role) {
                return $role->actions;
            }
        )->flatten(1)->merge($this->actions()->get());

        return $assigned;
    }