forked from mirror/Part-DB.Part-DB-server
Added permissions to control access to info providers and oauth tokens
This commit is contained in:
parent
7bbf612394
commit
b3b205cd6e
9 changed files with 72 additions and 1 deletions
|
@ -133,6 +133,13 @@ class ToolsTreeBuilder
|
|||
))->setIcon('fa-treeview fa-fw fa-solid fa-file-import');
|
||||
}
|
||||
|
||||
if ($this->security->isGranted('@info_providers.create_parts')) {
|
||||
$nodes[] = (new TreeViewNode(
|
||||
$this->translator->trans('info_providers.search.title'),
|
||||
$this->urlGenerator->generate('info_providers_search')
|
||||
))->setIcon('fa-treeview fa-fw fa-solid fa-cloud-arrow-down');
|
||||
}
|
||||
|
||||
return $nodes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue