<?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_orders extends subusers_permission_nodes
{
    public function __construct()
    {
        parent::__construct(
            'Ordrer',
            'Tilladelser til håndtering af ordrer'
        );

        $this->addNode(subusers_permission_node_key::ORDERS_LIST, 'Vis ordrer', 'Giver brugeren mulighed for at se listen over ordrer og ordredetaljer', subusers_permission_type::VIEW, false);
        $this->addNode(subusers_permission_node_key::ORDERS_EDIT, 'Rediger ordrer', 'Giver brugeren mulighed for at redigere eksisterende ordrer', subusers_permission_type::EDIT, false);
    }
}