madbob/GASdottoNG

View on GitHub
code/app/Parameters/Roles/Referent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Parameters\Roles;

class Referent extends Role
{
    public function identifier()
    {
        return 'referent';
    }

    public function initNew($type)
    {
        $type->name = _i('Referente');
        $type->system = true;
        $type->actions = 'supplier.modify,supplier.orders,supplier.shippings,supplier.movements,supplier.invoices';
        $type->parent_id = $this->getID('admin');
        return $type;
    }
}