<?php

namespace modules\subusers\permissions;

use modules\subusers\classes\subusers_permission_nodes;
use modules\subusers\helpers\subusers_permission_node_key;
use modules\subusers\helpers\subusers_permission_type;

class subusers_permission_nodes_selfserve extends subusers_permission_nodes
{
    public function __construct()
    {
        parent::__construct(
            'Selvbetjening',
            'Tilladelser til selvbetjening',
        );

        $this->addNode(subusers_permission_node_key::SELFSERVE_LIST, 'Vis selvbetjening', 'Giver brugeren mulighed for at se selvbetjeningsrelaterede oplysninger', subusers_permission_type::VIEW, false);
        $this->addNode(subusers_permission_node_key::SELFSERVE_EDIT, 'Rediger selvbetjening', 'Giver brugeren mulighed for at ændre selvbetjeningsrelaterede oplysninger', subusers_permission_type::EDIT, false);
        $this->addNode(subusers_permission_node_key::SELFSERVE_DELETE, 'Slet selvbetjening', 'Giver brugeren mulighed for at slette selvbetjeningsrelaterede oplysninger', subusers_permission_type::DELETE, false);
        $this->addNode(subusers_permission_node_key::SELFSERVE_ADD, 'Tilføj selvbetjening', 'Giver brugeren mulighed for at tilføje selvbetjeningsrelaterede oplysninger', subusers_permission_type::ADD, false);
    }
}