mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 22:29:33 +00:00
Füge Baugruppen hinzu
This commit is contained in:
parent
98b8c5b788
commit
5bd0741fba
128 changed files with 23830 additions and 109 deletions
|
|
@ -58,6 +58,7 @@ class GroupFixtures extends Fixture
|
|||
$users->setName('users');
|
||||
$this->permission_presets->applyPreset($users, PermissionPresetsHelper::PRESET_EDITOR);
|
||||
$this->addDevicesPermissions($users);
|
||||
$this->addAssemblyPermissions($users);
|
||||
$this->setReference(self::USERS, $users);
|
||||
$manager->persist($users);
|
||||
|
||||
|
|
@ -69,4 +70,9 @@ class GroupFixtures extends Fixture
|
|||
$this->permissionManager->setAllOperationsOfPermission($group, 'projects', true);
|
||||
}
|
||||
|
||||
private function addAssemblyPermissions(Group $group): void
|
||||
{
|
||||
$this->permissionManager->setAllOperationsOfPermission($group, 'assemblies', true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue