public function view(User $user, Category $category)
    {

        if ($user->canDo('block.category.view') && $user->isAdmin()) {
            return true;
        }

        return $user->id == $category->user_id;
    }