<?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_subusers extends subusers_permission_nodes
{
    public function __construct()
    {
        parent::__construct(
            'Underbrugere',
            'Angiv tilladelser relateret til underbrugere, herunder administration af underbrugere og deres tilladelser'
        );

        $this->addNode(subusers_permission_node_key::SUBUSERS_LIST, 'Vis underbrugere', 'Giver brugeren mulighed for at se listen over underbrugere', subusers_permission_type::VIEW, false);
        $this->addNode(subusers_permission_node_key::SUBUSERS_EDIT, 'Rediger underbrugere', 'Giver brugeren mulighed for at redigere eksisterende underbrugere', subusers_permission_type::EDIT, false);
        $this->addNode(subusers_permission_node_key::SUBUSERS_DELETE, 'Slet underbrugere', 'Giver brugeren mulighed for at slette eksisterende underbrugere', subusers_permission_type::DELETE, false);
        $this->addNode(subusers_permission_node_key::SUBUSERS_ADD, 'Tilføj underbrugere', 'Giver brugeren mulighed for at tilføje nye underbrugere', subusers_permission_type::ADD, false);
    }
}